LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-27-2003, 04:59 PM   #1
gschrade
Member
 
Registered: Oct 2003
Posts: 52

Rep: Reputation: 15
How to configure Red Hat Linux as a server


I am a newbie to linux. I am trying to configure Red Hat 9 as a web server. I plan to use Tomcat for server software. I am using a broadband connection coming into a router. I am going thru the Red Hat install procedure and come to the panel that asks for Hostname, Gateway, Primary DNS etc. I have a domain name registered. Is that what I enter for hostname? My ISP provides me with a static IP address. Will that become the IP address of the router. If so, is that what I enter for gateway? If so, what do I put for primary DNS, secondary DNS and tertiary DNS? Where does the IP address of the server get configured that points to the hostname?

Thanks in advance.
 
Old 10-28-2003, 02:15 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Welcome to LQ.

Yes you can use the domain you registered.

The IP address given to you will be for your router.

You will need to create a seperate internal network - one ip for you router (this will be the gateway on the server) and another ip address for the server

The DNS servers will be provided by your ISP - just ask them for the values.

To make your pages visable you will need to forward port 80 from your router to the private IP address of your server.
 
Old 10-28-2003, 05:10 PM   #3
gschrade
Member
 
Registered: Oct 2003
Posts: 52

Original Poster
Rep: Reputation: 15
Thank you for the welcome. Let me see if I get this straight. I use the IP address given me for the router but I need to create another one for the router? Or is that the only one. Is the server's private IP address dictated by the router? In other words, do I have to use one from a list provided by the router manufacturer or can I just arbitrarily pick one? How do I forward port 80 from the router to the private IP address of the server? Is that part of the router setup or is that done in Red Hat?

Thanks again
 
Old 10-29-2003, 12:32 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Your router will have 2 IPs - one private and one public.

Considering you are using this as a server and you will need to set up portforwarding you should use static addresses not DHCP provided by the router. You can use any IPs on a private range - eg:
192.168.1.1 = router
192.168.1.2 = server
192.168.1.3 = your pc
ond so on...

You will need to forward the port on the router so that any requests made to port 80 on your router are forwarded to your server.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How i can configure my broadband modem in linux red hat 9 babuu Linux - Hardware 1 11-15-2005 05:22 AM
How to install and configure a firewall on Red Hat 9 linux fhameed Linux - Security 3 05-01-2004 03:22 PM
can't configure sound card in Red Hat Linux 8.0 Help Me!! manjula_rajan Linux - Hardware 1 03-17-2004 01:52 PM
how to configure red hat linux on lan amitwarke Linux - Networking 1 02-08-2003 07:07 AM
How to configure Remote Access Server using Red Hat Linux 7.2 suraj Linux - Networking 1 07-22-2002 03:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 04:31 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