PDA

View Full Version : 2 web servers apache and iis


Lodnod
2004-05-31, 05:30 AM CDT
I have web pages hosted on a windows computer but now I also want to host pages (mainly mailman interface) on my linux router/server. I am pretty sure I have the DNS right and can hit the apache pages from inside (my outside DNS is hosted elsewhere), but I dont know how to configure iis to point to the fedora box, i.e. linuxbox.domain.com instead of www.domain.com.

Lod

ewdi
2004-05-31, 05:31 AM CDT
on your DNS, create a new A records to use the domain linux.domain.com to point to your linux IP

Lodnod
2004-05-31, 05:48 AM CDT
Originally posted by tux
on your DNS, create a new A records to use the domain linux.domain.com to point to your linux IP


I got the DNS stuff, it works inside, but if its coming from outside port 80 gets directed to the windows machine and i cant get it to the apache stuff

Lod

ewdi
2004-05-31, 06:03 AM CDT
that is odd, did you add the virtualhost in apache config?

jcstille
2004-05-31, 07:16 AM CDT
A quick fix, create a virtual host on the windows machine to redirect linux.domain.com to the inside address.

Lodnod
2004-05-31, 07:28 AM CDT
What about the Home Directory of IIS, do I make it the URL w/ or without options? Or do I share the linux directory where I want html and share it?

Lod

jeru
2004-05-31, 08:45 AM CDT
Sounds like he's talking about 1 IP.

Lodnod
2004-05-31, 09:11 AM CDT
linux box running fedora2
running as router / firewall
2eth: 192.168.1.1 and my static IP
w2k server is 192.168.1.105 and that is where the firewall sends port 80 traffic. which was fine when I was hosting a couple of pages on my windows server.

now i also am using the fedora box as a postfix mail server running mailman. i want to see the mailman web interface from the internet. i can see it fine on the inside because my inside dns is hosted by my windows server but the outside dns is hosted by a friend of mine elsewhere (he set up his end as well). i want to see the mailman stuff at http://linux.mydomain.com/mailman/listinfo/mylist

I assume since it is sending port 80 traffic to 192.168.1.105 i have to tell IIS in windows how to send it to my fedora box at 192.168.1.1 but it doesnt seem to work. i choose send to URL and put in http://linux.mydomain.com or tried pointing it to a share on the linux box.

lod

jimbo
2004-05-31, 09:39 AM CDT
I think you need to setup your IIS webserver to proxy linux.mydomain.com.

I'm not sure how to do this with IIS but you can do it with mod_proxy on Apache so I'm assuuming IIS has some mechanism for this.

You probably will get a better answer on this from an IIS newsgroup, as it's not really a configuration problem with your FC2 machine.

Good luck.