I have a problem accessing Apache from a computer other than my own on my home LAN. When I am using my own computer, I can access the Apache site by typing
http://localhost/. However, when I try to access it from a computer other than my own, I receive a 404 Not Found error.
I have tried adding the following lines to the top of the apache2.conf file:
<Directory "/var/www">
Order Allow, Deny
Allow from all
</Directory>
But am still receiving the same error message. Not sure what I am doing wrong. I also have some virtual servers setup in the /etc/apache2/sites-enabled/default file as follows:
NameVirtualHost 127.0.0.1
<VirtualHost localhost>
ServerName localhost
ServerAdmin
admin@test.com
DocumentRoot /var/www/
ErrorLog /var/log/apache2/error.log
</VirtualHost>
<VirtualHost sg>
ServerName sg
ServerAdmin
admin@test.com
DocumentRoot /var/www/sg/
</VirtualHost>
Is there something in this file that may be causing the problem?
I am running Apache on Ubuntu by the way.
Thanks for your help!