I have an Ubuntu 14.10 computer that is used for local website testing, it is not serving to the internet. On it, I have seven websites set up. However, when I access two of the seven, I get the Apache2 Ubuntu Default Page
instead of my own index page.
As far as I can tell, I set up all seven using the exact same process, so I don't know what these two are missing. Also, in my Apache logs directory, I have two log files, error
and access
for each of the two misbehaving sites, but all of them are empty. When I restart the apache2
service, there are no errors. I have retraced my steps multiple times and I can not see any difference between the working sites and the non working sites.
What options do I have for diagnosing this problem? Can I force more verbose error logs somehow? Is there another log somewhere that I can reference?
Here is an example of a .conf
file for one of the malfunctioning sites:
<VirtualHost *:80>
ServerName www.local_example.com
ServerAlias local_example.com
ServerAdmin [email protected]
DocumentRoot /var/www/Websites/example.com
<Directory /var/www/Websites/example.com/>
Options Indexes FollowSymLinks MultiViews
# pcw AllowOverride None
AllowOverride All
Order allow,deny
allow from all
# This directive allows us to have apache2's default start page
# in /apache2-default/, but still have / go to the right place
# Commented out for Ubuntu
#RedirectMatch ^/$ /apache2-default/
</Directory>
ErrorLog /home/example/Apache_Logs/local_example.com_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog /home/example/Apache_Logs/local_example.com_access.log combined
ServerSignature On
</VirtualHost>
/etc/apache2/sites-available
? If so, did you enable them withsudo a2ensite <your_site_name>
? Does the default apache error log file have anything in it? And do you have a ServerAlias or ServerName configured in your virtual host files? If you disable the default sitesudo a2dissite 000-default
(you can re-enable it withsudo a2ensite 000-default
), does it work? Also, it could be that you just forgot to restart apache?sites-available
. The default error log has nothing in it. I have definedServerAlias
in the hosts file. I disabled the000-default
site but that did not change anything. I restarted and reloaded apache many times..conf
file to my question.