tomcat proxy - 如何为某些虚拟主机apache 2设置代理位置

时间:2013-05-25 12:40:22

标签: apache http tomcat

我的httpd.conf通用选项为:

<Location />
    ProxyPass http://localhost:8080/
    ProxyPassReverse http://localhost:8080/

</Location>

我想配置包含

的虚拟主机

<VirtualHost *:80>

        ServerName  www.localhost        
        ServerAlias locathost
        DocumentRoot "C:\wamp\www\tomcat"
   <Location />
    ProxyPass http://localhost:8080/
    ProxyPassReverse http://localhost:8080/

</Location>

<VirtualHost *:80>

同时如果我调用其他virtaul主机,它应该通过端口80而不是8080服务

<VirtualHost *:80>

        ServerName  www.localhost2nd
        ServerAlias locathost2nd
        DocumentRoot "C:\wamp\www\phpapp"

<VirtualHost *:80>

所以我在配置中错过了什么呢?

0 个答案:

没有答案