tomcat proxy-如何为某个虚拟主机Apache2设置代理位置

tomcat proxy-如何为某个虚拟主机Apache2设置代理位置,apache,http,tomcat,Apache,Http,Tomcat,将我的httpd.conf通用选项设置为: <Location /> ProxyPass http://localhost:8080/ ProxyPassReverse http://localhost:8080/ </Location> ProxyPasshttp://localhost:8080/ ProxyPassReversehttp://localhost:8080/ 我想配置virtualhost,其中包括 像 服务器名www.loc

将我的httpd.conf通用选项设置为:

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

</Location>

ProxyPasshttp://localhost:8080/
ProxyPassReversehttp://localhost:8080/
我想配置virtualhost,其中包括


服务器名www.localhost
服务器别名locathost
DocumentRoot“C:\wamp\www\tomcat”
ProxyPasshttp://localhost:8080/
ProxyPassReversehttp://localhost:8080/
同时,如果我调用其他virtaul主机,它应该通过端口80而不是8080进行服务


服务器名www.localhost2nd
服务器别名locathost2nd
DocumentRoot“C:\wamp\www\phpapp”
那么,我在配置中遗漏了什么呢?它从不工作

<VirtualHost *:80>

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

</Location>

<VirtualHost *:80>
<VirtualHost *:80>

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

<VirtualHost *:80>