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 |
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? |
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 |
You should use another port for second web server. For example 8080.
|
Sorry, may I ask you how to create a port on redhat 7.3?
|
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.
|
Thanks a lot for teaching me. :)
|
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 |
Thanks for your sound advice.
gogo |
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. :)
|
-
|
All times are GMT -5. The time now is 09:09 AM. |