PDA

View Full Version : 2 web servers apache and iis


Lodnod
31st May 2004, 12:30 PM
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
31st May 2004, 12:31 PM
on your DNS, create a new A records to use the domain linux.domain.com to point to your linux IP

Lodnod
31st May 2004, 12:48 PM

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
31st May 2004, 01:03 PM
that is odd, did you add the virtualhost in apache config?

jcstille
31st May 2004, 02:16 PM
A quick fix, create a virtual host on the windows machine to redirect linux.domain.com to the inside address.

Lodnod
31st May 2004, 02:28 PM
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
31st May 2004, 03:45 PM
Sounds like he's talking about 1 IP.

Lodnod
31st May 2004, 04:11 PM
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
31st May 2004, 04:39 PM
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.