I have migrated from Raring to Saucy on my web server, and with it, upgraded Apache from 2.2.x to 2.4.x.
Apache now seems not to be aware of the sites-enabled directory or its content. Every host is served up with the 000-default.conf. An example of a VirtualHost is 006-cjshayward
:
<VirtualHost *:80>
ServerName cjshayward.com
ServerAdmin [email protected]
DocumentRoot /home/jonathan/cjshayward/public_html
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory /var/www/>
Options ExecCGI Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
</Directory>
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
AllowOverride None
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Directory>
ErrorLog ${APACHE_LOG_DIR}/author.cjshayward.error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/access.log combined
Alias /doc/ "/usr/share/doc/"
<Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
</Directory>
</VirtualHost>
<VirtualHost *:80>
ServerName www.cjshayward.com
ServerAlias author.cjshayward.com cjsh.name www.cjsh.name cjsh.info www.cjsh.info
RewriteEngine on
RewriteRule ^(.*)$ http://cjshayward.com$1 [R=301,L]
</VirtualHost>
What else do I need to do to register as having a VirtualHost with its own parent directory?
Include
line forsites-enabled
still present inapache2.conf
? That's what's responsible for loading the contents of those files.