This is a discussion on Virtual host proxy problem within the Apache Web Server forums, part of the Web Server and Related Forums category; Hello I have apache 2.2 setup with two virtual hosts (site1 and site2) Site1 should use proxy pass directive ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hello
I have apache 2.2 setup with two virtual hosts (site1 and site2) Site1 should use proxy pass directive so that all requests are redirected to an application server I can setup proxy pass to work for all requests to the server ( ignoring virtual host requests) but not at the virtual host level ie. requests for both site1 and site2 are served by the application server. This config file ignores the proxy pass request <VirtualHost _default_> DocumentRoot /usr/local/apache2/sites/site1 ServerName site1 <Directory "/usr/local/apache2/sites/site1"> allow from all Options +Indexes </Directory> #ProxyRequests Off <Proxy *> Order deny,allow allow from 192.168.10.111 </Proxy> ProxyPass /site1 http://site1:8080/ ProxyPassReverse /site1 http://site1:8080/ Any Suggestions Thanks in advance. |
|
|||
|
Thanks Davide for your reply
I dont think i explained myself well enough in the first message. I have four sites on the same machine 3 of these sites serve html to the browser directly. This is what i would like to achieve with the fourth site (site1) 1. For the browser to connect to http://site1 2. Apache passes the connection to http://app1:8080 3. http://app1:8080 returns processed html to the apache server1 4. The apache server to send this html to the browser. ie. http://app1:8080 is transparent to the browser. app1:8080 is an application server Is this possible? Also in the future other virtual hosts may connect to different application servers. |