<VirtualHost *:80>
<Directory "TOMCAT所在应用目录路径">
Order allow,deny
Allow from all
</Directory>
ServerName www.域名.com
DocumentRoot "TOMCAT所在应用目录路径"
ProxyPass /应用名 http://www.域名.com
ProxyPass / http://127.0.0.1:8080/应用名/
ProxyPassReverse / http://127.0.0.1:8080/应用名/
</VirtualHost>
------------------------------------------------------------------------------------------------下面是解释
<VirtualHost *:80>
<Directory "TOMCAT所在应用目录路径">
Order allow,deny Allow from all
</Directory>
ServerName www.域名.com
DocumentRoot "TOMCAT所在应用目录路径"
ProxyPass /应用名 http://www.域名.com
ProxyPass / http://127.0.0.1:8080/应用名/
ProxyPassReverse / http://127.0.0.1:8080/应用名/
</VirtualHost>
以上配置在apache 2.2.8+tomcat 6上测试通过,如果大家有更好的配置方法,欢迎大家拍砖!
声明: 此文观点不代表本站立场;转载须要保留原文链接;版权疑问请联系我们。