Eric thanks but I had seen those links.
For this setup I am facing this problem
In all the vhost definitions I use
ProxyPreserveHost On
but all the internal servers which are having domain names as
ttg.mydomain.com
kki.mydomain.com
ppo.mydomain.com
qqw.mydomain.com
and one one of the above
kki.mydomain.com I have 16 different websites which have to be accessed as
kki.mydomain.com/opi
kki.mydomain.com/541
kki.mydomain.com/q12
kki.mydomain.com/msi
and so on.
All of
this are behind a server on which I have used mod_proxy
here I used
<VirtualHost *:80>
ServerName ttg.mydomain.com
ProxyPass / http://ttg.mydomain.comProxyPassReverse / http://ttg.mydomain.com</VirtualHost>
(Internally also we are addressing these servers with same domain names)
<VirtualHost *:80>
ServerName kki.mydomain.com
ProxyPass / http://kki.mydomain.com
ProxyPassReverse / http://kki.mydomain.com
</VirtualHost>
like this 2 more vhosts now comes the problem the other domains on kki.mydomain.com
are different type of content management systesm
which we would like to access as
kki.mydomain.com/opi
kki.mydomain.com/541
kki.mydomain.com/q12
kki.mydomain.com/msi
I tried adding in the 2nd vhost definition as above
<VirtualHost *:80>
ServerName kki.mydomain.com
ProxyPass / http://kki.mydomain.com
ProxyPassReverse / http://kki.mydomain.comProxyPass /opi http://opi_on_kki
ProxyPassReverse /opi http://opi_on_kkiProxyPass /541 http://541_on_kki
ProxyPassReverse /541 http://541_on_kki
ProxyPass /msi http://541_on_kki
ProxyPassReverse /msi http://541_on_kki
</VirtualHost>
Some of these content management systems generate URLS
at / and not as
/opi
/msi
or /541
so that my ProxyPass Rules work.
If 2 CMSes are generating a URL which is having page elements being served at /
then how do I handle this situation?