I have updated my Ubuntu 13.10 to 14.04, so I have a newer version now.
But I spotted that after the update I experience a 404 error while trying to access my http://localhost/
After a complete reinstalling apache and all the related services, it still shows me a 404 error.
By the way, I have added ServerName localhost
to httpd.conf, so no result, as well as in my hosts file there is a line 127.0.0.1 localhost
.
After trying to sudo service apache2 restart
I have had an error like Could not reliably determine the server's fully qualified domain name, using 127.0.1.1.
, but fixed it successfully.
I am able to access http://localhost/
via the browser, but it shows me Index of /
and then empty. But when trying to access any subfolder in my /var/www/
, like http://localhost/test1
, it gives me a 404.
Is there any way of fixing it? Thank you!
/var/www/
?etc/apache2/sites-available
config's document root. Thank you!