Bluehost.com Web Hosting $6.95

Routing HTTP

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-16-2006
j_macaroni@yahoo.com
 
Posts: n/a
Default Routing HTTP

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.

  #2 (permalink)  
Old 04-16-2006
webwolf_3000
 
Posts: n/a
Default Re: Routing HTTP

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

  #3 (permalink)  
Old 04-16-2006
j_macaroni@yahoo.com
 
Posts: n/a
Default Re: Routing HTTP

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


  #4 (permalink)  
Old 04-17-2006
webwolf_3000
 
Posts: n/a
Default Re: Routing HTTP

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.

  #5 (permalink)  
Old 04-17-2006
j_macaroni@yahoo.com
 
Posts: n/a
Default Re: Routing HTTP

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.


  #6 (permalink)  
Old 04-18-2006
webwolf_3000
 
Posts: n/a
Default Re: Routing HTTP

let me know how ya get on.

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:54 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0