LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Windows and Linux Server with apache (https://www.linuxquestions.org/questions/linux-networking-3/windows-and-linux-server-with-apache-436977/)

alejandroye 04-19-2006 11:32 PM

Windows and Linux Server with apache
 
Ok. I am running a linux server (mandrake 10.1) with apache 2 (httpd2)virtual hosts, and this access to internet by port 80, and IP 192.168.1.100
also I have windows server with the IP 192.168.1.101

my question is the following:

how Can I setup apache to understand, when they have to access to these different IP in different OS (Linux and Windows)

:newbie:

adrianp918 04-20-2006 05:47 AM

you need to have 2 seperate external ip's, or have the listening port on one of the servers set to something different, like port 80. for one, and 81 for the other

you can not route traffic to 2 different machines on port 80,

i have heard of a script that did this, but it involved in forwarding you to a different machine, ,and did this by your os or browser type thing. nothing to rock solid

cdhgee 04-20-2006 09:32 AM

Alternatively, you could configure apache as a reverse proxy, so that requests to /folder1 get forwarded to your 192.168.1.100 server, and requests to /folder2 get forwarded to your 192.168.1.101 server.

See http://www.apacheweek.com/features/reverseproxies for details on configuring apache as a reverse proxy.


All times are GMT -5. The time now is 03:57 AM.