This is a discussion on Routing HTTP within the Windows Web Servers forums, part of the Web Server and Related Forums category; I am using Windows XP with IIS and Apache. I want to use port 80, but I have to turn ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am using Windows XP with IIS and Apache. I want to use port 80, but I
have to turn off IIS to use Apache. I would like to have both servers running. I was wondering if there is a way to tell IIS that certain requests should be routed to Apache on the same machine. In otherwords can I add an extra static IP address to the local machine, and any requests that come for that IP address to be routed to Apache. I hope this makes sense. |
|
|||
|
this can be accomplished by modifying the HOST file,
found under windows\drivers\etc\host ( no file extension ). make sure you use IP's from the private address range. this will only work for the local network, you would need to configure a hardware router to get this to work for the wide area network ( internet ). Global private address range as defined in RFC 1918: 10.0.0.0 through 10.255.255.255 172.16.0.0 through 172.31.255.255 192.168.0.0 through 192.168.255.255 |
|
|||
|
Coundt get it to work. When I try to run Apache (with IIS running) I
get a socket in use error. I tried it as follows: (the path is c:\windows\system32\drivers\etc\host ) Added a line 172.16.0.1 locala Added the IP 172.16.0.1 / 255.255.255.0 address to the network card. Changed https.conf ServerName locala:80 Tried to start Apache and got the socke in use error. Of course there is no problem when I turn off IIS. Maybe I did this wrong or maybe I have to add two IP addresses. One for IIS and one for Apache. Any ideas or is this a waste of time? webwolf_3000 wrote: > this can be accomplished by modifying the HOST file, > found under windows\drivers\etc\host ( no file extension ). > > make sure you use IP's from the private address range. > this will only work for the local network, you would need to configure > a hardware router to get this to work for the wide area network ( > internet ). > > Global private address range as defined in RFC 1918: 10.0.0.0 through > 10.255.255.255 > 172.16.0.0 through 172.31.255.255 > 192.168.0.0 through 192.168.255.255 |
|
|||
|
first off disable IIS and see if apache works
if apache works, disable apache and see if IIS works. if they work independantly then try the following: try setting both IP's also try running one of the servers with port :81 set. in order to access the server with a different port you will need to append the port number to the address http://www.foo.com:81 if that doesnt work, ill try installing IIS myself so i can try and figure this one out, im sure its possible. |
|
|||
|
Independently both Apache and IIS work fine.
I can run also Apache on port 8080 and no problem there. But the point is to have both running on same computer listening on port 80 but different IPs. I will try setting up 2 IPs and see if that works. webwolf_3000 wrote: > first off disable IIS and see if apache works > if apache works, disable apache and see if IIS works. > > if they work independantly then try the following: > > try setting both IP's > > also try running one of the servers with port :81 set. > in order to access the server with a different port you will need to > append the port number to the address > > http://www.foo.com:81 > > if that doesnt work, ill try installing IIS myself so i can try and > figure this one out, im sure its possible. |