Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Proper Apache setup

Status
Not open for further replies.

scilogic

IS-IT--Management
Mar 8, 2004
29
US
I tried to setup apache web server for redhat with no success... what would you say would be the proper steps and things to make sure that are correct in order for apache to run on a home based web server? Using a netgear router which is at IP 192.168.0.1 and my internal IP address of 192.168.0.2 ? I already have a DynDns account and client software that updates my dynamic IP and I have gotten this to work with windows 2000 advanced server...
 
I go to any system and type in my URL and I get page not found.. I manually put my whole site in the appropriate folder so it should pick it up.
 
Your URL. Is it resolving to your non-routeable internal address (192.168.x.x) or to the routeable address on the outside of your router?

It may not be possible for you to connect from your inside network to your server via the outside IP address. Some routers will only perform the port forwarding if the connection comes in on the router's external network adapter.

If you add an entry to your hosts file which points your URL to your non-routeable address, can you get to the site?

Want the best answers? Ask the best questions!

TANSTAAFL!!
 
Apache should have no problems as it comes right out of the box. It is set by default to "Listen" for all addresses on port 80. Have your router forward all http traffic to the lan ip of the web server. If dyndns uses a different port, have your router listen on that port but then forward it to the server on port 80. If that turns out to be a pain, bind apache to whatever port you need using the "Listen" directive. The server's lan settings should be set to use 192.168.0.1 as both the default gateway and dns and set the subnet mask to 255.255.255.0. If you are using the default location for the DocumentRoot, then everything should start working. If you changed where your webpages go, change DocumentRoot and the Dirctory container for it to the path where you have moved your webpages.
 
well I know my router does the job because this redhat linux installation I'm doing is only an experiment. My windows 2000 advanced server hard drive which I unplugged, does the job fine. I was just seeing if I could get redhat to do it since it's more stable. I didn't change any router settings. I'll try it again in a few days and see what happens. thanks guys.. let me know if you have anything to add
 
Did you configure the redhat firewall to allow port 80?

Go to bash and type 'lokkit' and enter, and configure the firewall to allow port 80 through.

D
 
that may be a possibility... I'll check on that and let you know if that was it soon
 
hi,
i have a similar configuration, when i try to connect to i get my router administrationside.
i´m using netgear dg834b and i´ve done the portforwarding.
my pc has a static ip to which i`ve forwarding the port 80.
i think seeing the adminside of my router shows me that the forwarding is ok, but i wanna see my index side of apache.
is it possible to make this real?
any help is welcome.
thx
bepepi
 
bepepi,

Is your router set up to listen on port 80? It sounds like that's where your request is going.

I tried connecting to it and got a DNS error. Is your DNS set up for that hostname?



Wishdiak
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top