LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   How to view the web site hosted on win2k server which is a client machine? (https://www.linuxquestions.org/questions/linux-networking-3/how-to-view-the-web-site-hosted-on-win2k-server-which-is-a-client-machine-23989/)

gogo 06-21-2002 12:41 PM

How to view the web site hosted on win2k server which is a client machine?
 
Hi,

I setup a red hat 7.3 server with internal ip 192.168.0.1 (eth1, Gateway), a win2k server with ip 192.168.0.2 and a win2k prof with ip 192.168.0.3.

The redhat server obtain a fixed ip from my isp on eth0.

The iptable was set and worked now.

Previously, I setup the IIS5 and hosted several ftp and http a/cs on the win2k servers.

Now, my question is how can I point the IP to the win2k server machine to browse the web sites and use the ftp a/cs?

Do I need to do virtual host and subnet mask on the redhat machine?

What should I do and where could I find the resources?

Thanks for any advice.

gogo

Mara 06-21-2002 02:36 PM

You need to forward port 80 and ftp ports to the Windows machine. It's done using iptables. You can find info in IP-Masquerade-HOWTO (www.tldp.org).
BTW Is it really a good idea to use IIS?

gogo 06-21-2002 11:37 PM

If I want to host web sites on both machines, how should I do that?

If I forward all the port 80 and ftp to the IIS, so I cannot host web sites on linux box, is it?

Please advice.

gogo

Mara 06-22-2002 02:54 PM

You should use another port for second web server. For example 8080.

gogo 06-23-2002 05:51 AM

Sorry, may I ask you how to create a port on redhat 7.3?

Mara 06-23-2002 02:40 PM

To change port Apach eis running, open /etc/httpd/conf/httpd.conf file. It's in the line "Port". Change the value and restart Apache.

gogo 06-24-2002 10:52 AM

Thanks a lot for teaching me. :)

Mik 06-25-2002 07:22 AM

Putting it on another port is one solution but in my opinion not the best. Creating a virtual host for each webserver would be a much nicer solution. The documentation on the apache website explains how to get this done:

http://httpd.apache.org/docs/vhosts/index.html

gogo 06-25-2002 09:11 AM

Thanks for your sound advice.

gogo

Mara 06-26-2002 04:00 PM

Virtual server is a good solution, but it may create problems at the beggining. But look and decide... You can always ask about it, of course. :)

thep 10-19-2002 10:48 PM

-


All times are GMT -5. The time now is 09:09 AM.