httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Schonle <>
Subject [users@httpd] Cannot access "localhost"
Date Wed, 05 Mar 2008 19:12:33 GMT
*In Short:
- After fresh installation of apache2 trying to access localhost or is not working
- OS: Ubuntu Gutsy


This is my first post on the mailing list and I try to write as 
precisely as possible.

Actual result:
After installation of Apache when trying to access "localhost" via the 
browser, it loads for several minutes and then an error msg appears. 
Ultimately an time out error appears.

What I did:
- Installed apache2 via synaptic
- while installing apache 2 an error msg about a qualified domain name 
Starting web server apache2                                        
apache2: Could not reliably determine the server's fully qualified 
domain name, using for ServerName

After some research I figured out that I had to add *ServerName 
"localhost"* to the apache2.conf - I restarted and restarting apache2 
made the error about qualified domain name vanish.

# Do NOT add a slash at the end of the directory path.
ServerRoot "/etc/apache2"
ServerName "localhost"

When writing now: "localhost" or "" as the URL, it didn't show 
the message "It works".

I recognized, that the /var/www folder did not contain any index file, 
but the /var/www/apache2-default folder.

Thus I tried the following changes on */etc/apache2/sites-available/default:
1) Document Root /var/www/apache2-default
2) Directory /var/www/apache2-default
3) removing the   # from   #RedirectMatch ^/$ /apache2-default/

However, I was not successful.

Does anybody know how to make accessing localhost work? or point me to 
some tutorial that is addressing the issue?

Further research:

Here also the data from the /etc/hosts: localhost ben-desktop

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

the /etc/host.conf contains:
# The "order" line is only used by old versions of the C library.
order hosts,bind
multi on

Looking forward to a hint how to access localhost!


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message