Vote count:
0
I'm trying to use apache to proxy requests to a weblogic application server. I have NameVirutalHosts set to server ip:80 and have the following virtual hosts configured:
<VirtualHost servera.domain.com:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName servera.domain.com
ServerAlias servera
ProxyPass /reports http://ift.tt/1kmip6n
ProxyPass /forms http://ift.tt/1kmimHS
ProxyPass /omnihtml http://ift.tt/1n8TS3Q
ProxyPass / http://ift.tt/1kmimHU
ProxyPassReverse / http://ift.tt/1n8TQJ0
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
<VirtualHost serverb.domaindev.com:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName serverb.domaindev.com
ProxyPass /reports http://ift.tt/1kmip6v
ProxyPass /forms http://ift.tt/1n8TQJ4
ProxyPass /omnihtml http://ift.tt/1kmimHY
ProxyPass / http://ift.tt/1n8TQJ6
ProxyPassReverse / http://ift.tt/1n8TSk9
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
<VirtualHost serverb.domaintest.com:80>
ProxyPreserveHost On
ProxyRequests Off
ServerName serverb.domaintest.com
ProxyPass /reports http://ift.tt/1kmimYi
ProxyPass /forms http://ift.tt/1n8TSke
ProxyPass /omnihtml http://ift.tt/1kmip6A
ProxyPass / http://ift.tt/1n8TSkg
ProxyPassReverse / http://ift.tt/1kmip6C
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
</VirtualHost>
Everything starts up okay, but I'm not getting what I expect. When I go to serverb.domaintest.com I expect to get the contents of serverb.domaintest.com:8888/omnihtml/omiuac11g.htm (the default proxy link for the virtual host) but instead I'm getting the contents of http://ift.tt/1n8TQJ6... servera.domain.com and serverb.domaindev.com work as expected. I've searched through the Apache docs but nothing stands out to me as to why this isn't working as expected. Can anyone point me in the right direction?
asked 1 min ago
Aucun commentaire:
Enregistrer un commentaire