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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-20-2004, 03:48 PM
|
#1
|
Member
Registered: Apr 2004
Posts: 43
Rep:
|
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)?
|
|
|
04-20-2004, 03:56 PM
|
#2
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
04-21-2004, 02:36 AM
|
#3
|
Member
Registered: Apr 2004
Posts: 43
Original Poster
Rep:
|
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?
|
|
|
04-21-2004, 01:31 PM
|
#4
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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".
|
|
|
04-21-2004, 02:29 PM
|
#5
|
Member
Registered: Apr 2004
Posts: 43
Original Poster
Rep:
|
Is it same as "Port Redirection"? To go one step further, what do I do when I find "Port Forwarding"? What does it mean?
|
|
|
04-21-2004, 03:28 PM
|
#6
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
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.
|
|
|
04-21-2004, 04:01 PM
|
#7
|
Member
Registered: Apr 2004
Posts: 43
Original Poster
Rep:
|
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?
|
|
|
04-21-2004, 04:21 PM
|
#8
|
Member
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405
Rep:
|
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....
|
|
|
04-21-2004, 04:30 PM
|
#9
|
LQ Newbie
Registered: Apr 2004
Location: jungle
Distribution: dsl 6.2
Posts: 10
Rep:
|
cheers jeffreybluml
|
|
|
04-21-2004, 04:54 PM
|
#10
|
Member
Registered: Apr 2004
Posts: 43
Original Poster
Rep:
|
Thank you both of you, it works now. However, what is the standard FTP port?
|
|
|
04-21-2004, 05:26 PM
|
#11
|
Member
Registered: Mar 2004
Location: Minnesota
Distribution: Fedora Core 1, Mandrake 10
Posts: 405
Rep:
|
It is port 21...
|
|
|
04-22-2004, 04:13 PM
|
#13
|
LQ Newbie
Registered: Mar 2004
Location: Tennessee
Distribution: Red Hat 9, FC1, FC2, FC3, CentOS
Posts: 21
Rep:
|
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.
|
|
|
04-22-2004, 04:33 PM
|
#14
|
Member
Registered: Apr 2004
Posts: 43
Original Poster
Rep:
|
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)
|
|
|
All times are GMT -5. The time now is 07:31 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|