LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-25-2004, 01:18 PM   #1
mark001
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Rep: Reputation: 15
Question Do I need one or two NIC if I want to install apache web server


I want to install apache web server and host a few web sites on the server. I currently have just one NIC.

For running a web server, must I need to have two NICs, IP masequerating etc. etc.. . ?

I have read a few books on linux but still could not quite understand the idea of installing
2 NICs.

My distro is redhat 8.0

Can anyone tell me why some install 2 NICs while some only have just one NIC?

Many thanks in advance.
 
Old 09-25-2004, 01:22 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
You'll only need one nic in the web server.
 
Old 09-25-2004, 01:49 PM   #3
mark001
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
david_ross

Thank you for the prompt response.

sorry, I forgot to mention about my network configuration which is this:

I have 2 pcs (redhat 8 and win2k) each of these is connected to a gateway router which inturn connected to a DSL modem supplied by ISP.

So, I thought I might need two NICs ?( one for the lan and the 2nd one for the internet )

I dld like to save the cost of the 2nd NIC if I can run the server with only one NIC.

Is it still one NIC I need?

regards.
 
Old 09-25-2004, 01:54 PM   #4
mirradric
Member
 
Registered: May 2004
Location: Singapore
Distribution: Debian woody and debian sarge
Posts: 188

Rep: Reputation: 31
You still need only 1 NIC since you are connected to the lan and to the internet (via the router which is on the same lan) using the same NIC. Usually only a computer acting as a router need to have 2 NICs.
 
Old 09-25-2004, 01:58 PM   #5
lappen
Member
 
Registered: Aug 2003
Location: Sweden
Posts: 83

Rep: Reputation: 15
Just forward port 80 or whatever from your router to inrernal_ipofyourserver:port
 
Old 09-25-2004, 02:17 PM   #6
mark001
LQ Newbie
 
Registered: Sep 2004
Posts: 27

Original Poster
Rep: Reputation: 15
Thank you guys.

I got the picture now more or less.

But, how and from where do I forward port 80 from or to?

any pointers?
 
Old 09-25-2004, 03:13 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You configure the router to foward port 80 to the webserver. You should also setup a static IP address on the webserver. See your router's manual for details on fowarding ports.
 
  


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
setting up password protected web forms on an apache web server AZDAVE Linux - Security 3 07-07-2004 12:03 PM
Apache web server install fails westone Linux - Networking 1 07-05-2004 04:37 PM
apache web server .. johnyy Linux - Software 1 11-22-2003 05:07 AM
apache web server AZDAVE Linux - Newbie 2 10-03-2003 01:52 PM
web server apache sameermanagoli Linux - Software 15 07-07-2003 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

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