i have 2 hostnames created by dyndns.org... s1.server.org and s2.server.org. both pointing to my 1 external ip (89.647.xx.xx)
www.domain1.com has a CNAME WWW record of s1.server.org and www.domain2.com record of s2.server.org
i want domain1 tobe hosted by server 1 which is located at 192.168.1.1 and domain2 to be hosted by server2 @ 192.168.1.2
i need them both to have servers for themselves...
i tried the following:
- Code: Select all
NameVirtualHost *
<VirtualHost *>
ServerName s1.server.org
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.1.1/
ProxyPassReverse / http://192.168.1.1/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
<VirtualHost *>
ServerName s2.server.org
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass / http://192.168.1.2/
ProxyPassReverse / http://192.168.1.2/
<Location />
Order allow,deny
Allow from all
</Location>
</VirtualHost>
but all it does it use the first part of this file and ignores the rest,... e.g. if i typed in, domain2.com it will direct to 192.168.1.1 when it suppose to go to 192.168.1.2.
whats wrong with code? cant i have multiple proxy?