LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-21-2002, 12:41 PM   #1
gogo
Member
 
Registered: Apr 2001
Posts: 117

Rep: Reputation: 15
Question 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
 
Old 06-21-2002, 02:36 PM   #2
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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?
 
Old 06-21-2002, 11:37 PM   #3
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
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
 
Old 06-22-2002, 02:54 PM   #4
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
You should use another port for second web server. For example 8080.
 
Old 06-23-2002, 05:51 AM   #5
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Sorry, may I ask you how to create a port on redhat 7.3?
 
Old 06-23-2002, 02:40 PM   #6
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 06-24-2002, 10:52 AM   #7
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Thanks a lot for teaching me.
 
Old 06-25-2002, 07:22 AM   #8
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
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
 
Old 06-25-2002, 09:11 AM   #9
gogo
Member
 
Registered: Apr 2001
Posts: 117

Original Poster
Rep: Reputation: 15
Thanks for your sound advice.

gogo
 
Old 06-26-2002, 04:00 PM   #10
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
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.
 
Old 10-19-2002, 10:48 PM   #11
thep
Member
 
Registered: Apr 2001
Location: Bangkok, Thailand
Distribution: RH8(server)
Posts: 65

Rep: Reputation: 15
-
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to view web page from remote machine kiddy Linux - Networking 2 04-14-2004 09:06 PM
how can i donload and view entire web site offline !! hitesh_linux Linux - Software 8 03-08-2004 10:32 AM
How I can block a IP to view my web site?? AZIMBD03 Linux - Networking 6 02-26-2004 03:19 PM
Problems to view files on Win2k Machine jazzyjazz Linux - Networking 1 10-31-2003 02:03 PM
How is this site hosted? AMDPwred General 1 12-11-2001 08:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration