Forum Moderators: phranque

Message Too Old, No Replies

How to proxy 2 domain names?

         

skurlow

2:16 am on May 19, 2005 (gmt 0)

10+ Year Member



I am pulling my hair out over this! I'm not an Apache guru so am frustrated to get this right...

I have 2 registered domains that I want to use to host 2 different weblogic apps on the same machine and I thought I should run them on port 8001. For example the domain names are www.test.com and www.foo.com

I want someone on the internet that when they request [test.com...] or URLs under this that they will be redirected to [test.com:8001...] and URLs under it.

Similarly for a request to [foo.com...] to be redirected to [foo.com:8001...]

I just cannot for the life of me work out how to setup Apache's httpd.conf to do it. I can setup a proxy but it doesn't work at a site level but for all requests regardless of domain name they choose.

ProxyRequests Off

<Proxy *>

Order deny,allow
Allow from all

</Proxy>

ProxyPass / [test.com:8001...]
ProxyPassReverse / [test.com:8001...]

Thanks in advance,
Stephen

skurlow

1:46 pm on May 19, 2005 (gmt 0)

10+ Year Member



OK I figured it out eventually by using the virtualhost directive and placing proxypass directive inside one for each domain name