Finally I got every thing working. Thanks for your help and support. I am posting the findings of all what it made work.
The solution for above error came by adding ServerName directive on DomU1 also adding the corresponding thing to / etc/hosts on Dom0 and in the sites-enabled where ProxyPass and ProxyPassReverse is mentioned <VirtualHost *:80> # do not mention IP read the note below ProxyPass / http://servername where redirected ProxyPassReverse / http://servername where redirected </VirtualHost> Read this note it is important Do not use the IP here if more than one site is on the DomU What happens is when you put up the IP address in Dom0 as above then the server which will recieve request will server you a vhost which is present alphabeticaly first in its sites-enabled directory. To get rid of this you need to have on your gateway or Dom0 a DNS if you do not have then use /etc/hosts to map internal servers by name. [code] /etc/hosts/ 192.168.1.13 abc1 abc2 192.168.1.17 abc3 192.168.1.18 abc4 [/code] Now your Dom0 or Gateway is aware of abc1 abc2 abc3 and abc4 are which IP internally mapped to.Do not thing that putting abc1 and abc2 above is a mistake . I redirected two pages from main site to ip 192.168.1.13 internally the scenario is your main site itself is on an internal machine which is accessible by a gateway redirecting the requests to it. Now you have to do some home work on Dom1 at 192.168.1.13 where your sites are hosted in the vhost configuration file write [code] ServerName abc1 [/code] and in another host write [code] ServerName abc2 [/code] ServerName directive will serve the vhost request based on the servers name. Otherwise vhosts will be served in alphabetical order. Thanks for your help. -- You received this message because you are subscribed to the Linux Users Group. To post a message, send email to [email protected] To unsubscribe, send email to [email protected] For more options, visit our group at http://groups.google.com/group/linuxusersgroup
