Forum Moderators: phranque
I want to know if its possible and how to do it...
I have one valid ip address and one internet domain.
What I want to do is:
- when a client access my domain with: www.mydomain.com on his web browser he access my apache server apache1.localnetwork 10.0.0.1 (I already do this through nat in iptables).
- when he types www.mydomain.com/site1 I serve him with another apache server inside my local network (apache2.localnetwork 10.0.0.2).
- when he types www.mydomain.com/site2 he access another server apache3.localnetwork 10.0.0.3.
How can I do this redirection with the client passing me just another uri and I serving him with different apache servers, having only an external ip and domain name?
Thanks.
If you wish the back-end servers to log useful visitor information, you will need to generate the HTTP X_Forwarded_For header on the front-end server and pass it to the back-end servers, and then log that header on the back-end servers instead of Remote_Addr. Otherwise, the back-end servers will always log all requests as originating at the front-end server, and the actual visitors' IP addresses won't be logged.
Jim