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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ERROR--cannot determine local host name--use the ServerName directive

Status
Not open for further replies.

73072

Technical User
Jun 14, 2002
1
US
I am new to apache and linux.

i am setting up a LAN that is composed of WinXP (192.168.0.2), a Win98 (192.168.0.3) and a RedHat 7.0 (192.168.0.20)
The LAN is behind a Netgear RT314 router. It is connected to the internet via a static IP.

I want to know how does DNS come into play?
What do I have to do to in order to get apache running?

Please help.

 
You need to set your router to forward all http requests to the ip of the machine running apache. If you have a registered domain name, you will need to use that for the ServerName directive in /etc/httpd.conf. If you are just using it as a server for your local network, uncomment the ServerName line by removing the "#" in front of it. The default is localhost. You may be able to use the machine name in this case. Then change the Listen line to the ip address of the machine or use an "*" so it listens for all addresses. If this is a registered domain name, you will need to contact your registrar and change the dns "A" record so the domain name points to your internet ip. Your router will in turn route all http request to the internal ip of your web server.
 
set your router to forward all requests on port 80 to your apache server (your Redhat server) now if you don't own a domain name it's not needed you can use the IP of the router and it should forward the request to the internal machine otherwise you will have to setup a dns server within your domain
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top