After upgrading one of the machines from Ubuntu 13.04 to 13.10, Apache failed to serve VirtualHost on the machine.
I found the upgrading process has replaced apache2.conf.
I changed
# Include generic snippets of statements
IncludeOptional conf-enabled/*.conf
# Include the virtual host configurations:
IncludeOptional sites-enabled/*.conf
to
# Include generic snippets of statements
IncludeOptional conf-enabled/*
# Include the virtual host configurations:
IncludeOptional sites-enabled/*
as the virtualhost config files do not have .conf extension on the machine.
I also changed
<Directory />
Options FollowSymLinks
AllowOverride None
Require all denied
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
to
<Directory />
Options FollowSymLinks
#AllowOverride None
#Require all denied
Require all granted
</Directory>
<Directory /usr/share>
AllowOverride None
Require all granted
</Directory>
<Directory /var/www/>
Options Indexes FollowSymLinks
#AllowOverride None
#Require all granted
AllowOverride All
Order allow,deny
allow from all
</Directory>
The VirtualHost is live again.