LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   localhost on apache (https://www.linuxquestions.org/questions/linux-software-2/localhost-on-apache-95078/)

Xing 09-21-2003 04:39 AM

localhost on apache
 
i am trying to run apache on my computer..
the service is running but when i do http://localhost/ on it it says could not contact localhost..
i have tried even http://127.0.0.1/ but still nothing...
i am using mozilla and RH8..
do i need to do anything else like configure http server..
i have put a name for the server..

regards
Xing

WiZaC 09-21-2003 05:31 AM

it is automaticlly configured on localhost, hmm, are you totally sure that apache is starte corectly?
WiZaC

Xing 09-22-2003 01:48 AM

ys i have checked and also done service httpd restart..
but the localhost is till not connecting...

bulliver 09-22-2003 04:11 AM

I can almost gaurantee this is something wrong with your http.conf file.

What does your ServerName directive say? If you just want apache for local development it should look like:

ServerName 127.0.0.1

or:

ServerName localhost

Xing 09-26-2003 12:21 AM

i had set the servername as jimesh

does servername really matter... i have seen machines which do not have server names at all in them but their http functions fine..

regardless, i will set my servername as localhost and get back to u people... :o

Regards
Xing

bulliver 09-28-2003 03:38 AM

>i had set the servername as jimesh

If that is your hostname, and your /etc/hosts file is properly configured it should work...but in that case you would type http://jimesh/ in a browser rather than localhost.


All times are GMT -5. The time now is 07:39 PM.