LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mozilla giving error while using apache2.0 (https://www.linuxquestions.org/questions/linux-networking-3/mozilla-giving-error-while-using-apache2-0-a-590853/)

niranjan_artal 10-10-2007 01:49 PM

Mozilla giving error while using apache2.0
 
hi..i ve started apache server by typing
service httpd start..and its running..
In mozilla web browser when i type http://127.0.0.1.. It gives the home page of apache 2.0..But when i type http://localhost..It doent show up..the browser tries to access google website with localhost as search word if its not connected to internet..And if d system is connected to internet and if i type http://localhost/ wikipedia site is opened and info bout localhost is displayed..Probably wat could be the problem..Plz hepl me out..

teek 10-10-2007 03:36 PM

I don't know your distro but in Gentoo you have to specify in /etc/hosts "127.0.0.1 localhost" (without the ""'s) in order for localhost to work. You system now just doesn't know that 127.0.0.1 is localhost.


All times are GMT -5. The time now is 04:11 PM.