Forum Moderators: phranque

Message Too Old, No Replies

Forwarding from one apache to another on same box at different port.

         

mnsweeps

9:46 pm on Mar 20, 2011 (gmt 0)

10+ Year Member



I have a windows box which runs 2 apache httpd servers. One is at port 80 and the other one at port 8017.

My DNS points www.mydomain.com to [<myserver>...] (or [<myserver>:80...] .

and when I go to www.mydomain.com:8017 request is forwarded to
[<myserver>:8017...]

However I want to hide the post in second case. I want www.mydomain.com to go to [<myserver>:8017...] ..

How do I set a proxy on apache 1 to forward request to apache 2 at 8017 ?

jdMorgan

10:56 pm on Mar 28, 2011 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The above description is incomplete. Please list all possible hostnames and ports, and their desired disposition.

The short answer is to correctly configure the virtualhosts on your server, but without complete information, it's not possible to guess what that configuration might be.

Note that it won't be possible to "hide" the port number unless you either don't want your front-end server to handle any requests, or if your front-end and back-end servers have different hostnames (or domains).

Jim