LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 04-20-2004, 02:48 PM   #1
IlyaZ
Member
 
Registered: Apr 2004
Posts: 37

Rep: Reputation: 15
Installing Red Hat Apache server?


Okay, I got the latest Red Hat, and I put up apache and everything. It works very good on my LAN, however I want to serve files over the www and not just internally. How do I configure the server to be open for everyone and publish it on the net via apache that means (from the apache www directory)?
 
Old 04-20-2004, 02:56 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Welcome to LQ.

How are you connected to the internet? You will most likely need to forward port 80 requests to the server from your router/firewall.
 
Old 04-21-2004, 01:36 AM   #3
IlyaZ
Member
 
Registered: Apr 2004
Posts: 37

Original Poster
Rep: Reputation: 15
I'm connected to the internet via a cable modem connected to a firewall/router (with HTTP and FTP Server ports open, any other I should open?). How do I forward requests to the server?
 
Old 04-21-2004, 12:31 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
How you forward requests will depend on your hardware. Most firewalls and routers will have this functionality via a web browser. Look for something called "NAT" "NATting" or "Pot Forwarding".
 
Old 04-21-2004, 01:29 PM   #5
IlyaZ
Member
 
Registered: Apr 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Is it same as "Port Redirection"? To go one step further, what do I do when I find "Port Forwarding"? What does it mean?
 
Old 04-21-2004, 02:28 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It may also be called port redirection. It will forward all requests made to a specific port on your router (the device with the public IP) to a port on a machine withing your local network.
 
Old 04-21-2004, 03:01 PM   #7
IlyaZ
Member
 
Registered: Apr 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Okay so if I write my IP to the internal server let's say it's 192.168.0.25 would I just enter that adress in my firewall? And what ports should I redirect? All incoming? How's that defined?
 
Old 04-21-2004, 03:21 PM   #8
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
Lets break it down this way...with an example.

I have a linksys router connected to my cable modem, and my computers connect to the linksys. If I open a web browser and type 192.168.1.1, it takes me to my router's configuration application. 192.168.1.1 is the LAN IP the router gives itself , and it then assigns my two computers the IPs 192.168.1.100 and 192.168.1.101. The actual IP from your internet provider is assigned by the modem and given to the router. It will not start with 192.xxx.xxx.xxx. These are typically LAN IPs, assigned, as I said, by the router. So, the router takes on the IP given by your provider, and re-assigns the LAN IPs to the computers.

So, once I'm in my router's config app, There is a tab labeled "forwarding." In this tab, you can specify port ranges (for http you only need port 80) and then assign all requests in that range to any one of the LAN IPs assigned to your computers. My Linux box got 192.168.1.101, and this is the one on which I run the webserver, so in the forwarding tab I chose to have requests in the port range 80 through 80 (yep, you have to put them both in there) redirected to IP 192.168.1.101. That's all. Then all requests from the outside world via the web get patched through to the webserver.

I hope this is more clear now, I realize I've been a bit redundant here...sorry...I'm tired today...

Good luck....
 
Old 04-21-2004, 03:30 PM   #9
gekkokid
LQ Newbie
 
Registered: Apr 2004
Location: jungle
Distribution: dsl 6.2
Posts: 10

Rep: Reputation: 0
cheers jeffreybluml
 
Old 04-21-2004, 03:54 PM   #10
IlyaZ
Member
 
Registered: Apr 2004
Posts: 37

Original Poster
Rep: Reputation: 15
Thank you both of you, it works now. However, what is the standard FTP port?
 
Old 04-21-2004, 04:26 PM   #11
jeffreybluml
Member
 
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405

Rep: Reputation: 30
It is port 21...
 
Old 04-22-2004, 12:52 PM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
A good bookmark to keep for portnumbers is:
http://www.iana.org/assignments/port-numbers
 
Old 04-22-2004, 03:13 PM   #13
wizjr1
LQ Newbie
 
Registered: Mar 2004
Location: Tennessee
Distribution: Red Hat 9, FC1, FC2, FC3, CentOS
Posts: 21

Rep: Reputation: 15
Thank you all for a wonderful thread. It made it crystal clear for me to setup my own apache server. I own a domain name and want it to go to my server, how do I get it to point to it. I understand all the IP stuff now and can type my IP address to get to my site but I don't understand how to get the name to it.
 
Old 04-22-2004, 03:33 PM   #14
IlyaZ
Member
 
Registered: Apr 2004
Posts: 37

Original Poster
Rep: Reputation: 15
You got to login on your domain and point it to your IP from there. Or just email the company and they should be able to transfer the domain (often costs)
 
  


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
Installing Apache Tomcat Server on RED HAT Linux 9 shelldinesh Linux - Software 0 10-06-2004 06:55 AM
installing a vnc server on red hat naijaguy Linux - Software 1 08-12-2004 12:44 AM
Reach web page from Apache Red Hat Server zeljka Red Hat 1 01-06-2004 12:19 PM
links for securing sendmail and apache and linux red hat 8 server Tigger Linux - Security 2 06-11-2003 07:43 AM
Installing a Server With Linux Red Hat 8.0 Zakane Linux - Newbie 4 01-22-2003 05:57 PM


All times are GMT -5. The time now is 10:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration