关于 Centos5.3 apache+tomcat反向代理配置错误问题

tyj 发布于 2011/04/19 10:14
阅读 489
收藏 1

我在APACHE虚拟主机的配置如下:

<VirtualHost *:80>
    ServerAdmin admin@tyj.com
    DocumentRoot "/usr/local/tomcat/webapps/rabbit"
    ServerName 172.16.130.129    这里改成域名www.xxx.com  效果一样的
    ProxyRequests off
#    <proxy>
#    Order deny,allow
#    Allow from all
#    </proxy>
    ProxyPass /rabbit http://localhost:8080/rabbit
    ProxyPassReverse /rabbit http://localhost:8080/rabbit
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin admin@tyj.com
    DocumentRoot "/usr/local/tomcat/webapps/comet4j"
    ServerName 172.16.130.129    www.xxx.org改为相应域名也一样
#    <proxy>
#    Order deny,allow
#    Allow from all
#   </proxy>
    ProxyPass /comet4j http://localhost:8080/comet4j
    ProxyPassReverse /comet4j http://localhost:8080/comet4j
</VirtualHost>

通过http://172.16.130.129/rabbit访问是没有问题,访问http://172.16.130.129/comet4j 出现以下错误

错误信息:

Forbidden

You don't have permission to access /comet4j on this server

寻求解决方法,万分感谢~

加载中
返回顶部
顶部