IIS and Apache


Recommended Posts

Is is possible to run IIS and Apache at the same time? I am inetersted in getting another static IP address from my ISP and running a Linux web server. Maybe this is more of a networking question than a linux question. How would something like that work? Right now I have a linksys router that forwards port 80 to my IIS server.

Would I put a hub in fron of two routers which I would configure to respond to each IP address. Do I need to get more sophisticated hardware like a firewall/gateway.

Thank you in advance.

Link to comment
Share on other sites

Is is possible to run IIS and Apache at the same time? I am inetersted in getting another static IP address from my ISP and running a Linux web server. Maybe this is more of a networking question than a linux question. How would something like that work? Right now I have a linksys router that forwards port 80 to my IIS server.

Would I put a hub in fron of two routers which I would configure to respond to each IP address. Do I need to get more sophisticated hardware like a firewall/gateway.

Thank you in advance.

Your Linksys router is a NAT firewall/gateway already so no worries there. If your windows box has all port 80 requests being forwarded to it for use with IIS, just forward all port 81 requests to your linux box.. Just make sure you have apache configured to listen on port 80... As well, any requests that are sent to port 81 should be made as such "http://www.somesite.com:81"

Link to comment
Share on other sites

Would I want to configure Apache to listen to port 81 and not 80? So if I use godaddy for my domain dns, I would just forward that to my xx.xxx.xxx.xx:81? I would not want to tell people that my URL is www.somewebsite.com:81. Would that work?

Link to comment
Share on other sites

^^^ I don't think you can have both IIS and Apache on the same port. Or, stated more broadly, only one app can be assigned to any port.

Think of it this way, standard web traffic comes in to your computer on port 80. Does it direct it to Apache or IIS? It would not know. And that is why only one can be assigned to a port.

Is that what you were asking?

Link to comment
Share on other sites

Is is possible to run IIS and Apache at the same time? I am inetersted in getting another static IP address from my ISP and running a Linux web server. Maybe this is more of a networking question than a linux question. How would something like that work? Right now I have a linksys router that forwards port 80 to my IIS server.

Would I put a hub in fron of two routers which I would configure to respond to each IP address. Do I need to get more sophisticated hardware like a firewall/gateway.

Thank you in advance.

You can have them listen on the same port if you get a more sophisticated router. The LINKSYS routers are only capable of doing PAT (Port Address Translation), while you need to be doing NAT. NAT maps outside addresses (your two leased static IPS) to private addresses inside the network (192.168.1.1, 192.168.1.2, etc). This allows multiple servers to listen on the same port, but accessed via different IPs. LINKSYS and PAT routers allow a single port to be forwared to an IP address, and doesn't have support for multiple external IP addresses.

Link to comment
Share on other sites

Yes, I read that apache and IIS cannot coexist with a single IP as Mark pointed out. My question is "how do I run IIS and Apache web servers?" What is the best way? Is it using two different ports and doing what I mention above. Can I forward to xx.xxx.xxx.xx:81? I do not want my website to be www.site.com:81 but simply www.site.com. Do I get a NAT router?

Link to comment
Share on other sites

Yes, I read that apache and IIS cannot coexist with a single IP as Mark pointed out. My question is "how do I run IIS and Apache web servers?" What is the best way? Is it using two different ports and doing what I mention above. Can I forward to xx.xxx.xxx.xx:81? I do not want my website to be www.site.com:81 but simply www.site.com. Do I get a NAT router?

I would suggest a NAT router + the two leased IP addresses.

I have to be honest and say I don't know of any good cheap NAT routers though (I use cisco and foundry at my jobs, and they are expensive) but you may be able to build your own using a linux distribution such as monowall.

Link to comment
Share on other sites

Three are many router distro's too choose from.. Most of which all support multiple external IPs.. pfsense or ipcop or smoothwall or m0n0wall all come to mind.. Also there is clarkconnect, etc.. etc.. etc..

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.