A-----B-----C
request from internet comes at A it forwards that to B and then B
checks if it has to send that request to C or it can serve that from B itself.
I am posting the configurations.
site1.abc.com
site2.abc.com
site3.abc.com
site4.abc.com
these sites above are having domain names which have been registered.
Any request to any of them i.e. site1.abc.com or site3.abc.com
Comes at A
Following is vhost configuration at A
for
site2.mydomain.com
<VirtualHost *:80>
ServerAdmin webmas...@localhost
ServerName site2.mydomain.com
ProxyRequests off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass /application http://nirvana/
ProxyPassReverse /application http://nirvana/
ProxyPass / http://server2
ProxyPassReverse / http://server2
</VirtualHost>
Where server2 is B in above diagram.
and /application is forwarded to B which in turn forward to C.
In above configuration nirvana and server2 are both pointing to same server B.
Following is configuration of Server B
for a request that comes with a server name for nirvana
<VirtualHost *:80>
ServerAdmin webmas...@localhost
ServerName nirvana
ServerAlias
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPreserveHost On
ProxyPass / http://papaserver:9090/portal
ProxyPassReverse / http://papaserver:9090/portal
Where papaserver is Server C which is a tomcat instance.Not apache and
on C I can access it by
http://localhost:9090/portal
Server B is serving a request which comes for a
ServerName nirvana and also
ServerName site2.abc.com
A request that comes for nirvana that has to be forwarded to C such that
on internet any one if types
http://site2.abc.com/application
he can see the same content which I see as
http://localhost:9090/portal on physically opening a browser at C.
My problem is if a request originally is coming for site2.abc.com
and I have kept ProxyPreserveHost On then orginial hostname requested
is preserved in this process which is site2.abc.com
but for a request for site2.abc.com/application
I need to proxy it to Server B so that Server B can respond with a
different hostname than site2.abc.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]