I recently ran an update on my vps which updated my apache from 2.2 to 2.4.6 on Ubuntu 13.10.
After the update i am only getting the "it works" default apache landing pages.
I was fairly sure this was due to the new virtual host file requirements so i tried adding the .conf
extension to my virtual hosts files and also adding:
<Directory "/home/username/public/testapp.com/public/">
Options Indexes FollowSymLinks Includes
AllowOverride All
Require all granted
</Directory>
to the files and re enabling them using a2ensite and reloading apache2. After not getting anywhere with these attempts i removed all of my enabled sites and started fresh.. putting a basic site in/home/username/public/url.co/
and creating a new virtual host file:
<VirtualHost *:80>
# Admin email, Server Name (domain name), and any aliases
ServerAdmin admin@url.co
ServerName url.co
ServerAlias www.url.co
# Index file and Document Root (where the public files are located)
DirectoryIndex index.html index.php
DocumentRoot /home/username/public/url.co/public/
# Log file locations
LogLevel warn
ErrorLog /home/username/public/url.co/log/error.log
CustomLog /home/username/public/url.co/log/access.log combined
<Directory /home/username/public/url.co/public/>
Options Indexes FollowSymLinks Includes
AllowOverride All
Require all granted
</Directory>
</VirtualHost>
This is still giving me the "it works" page. Am I missing something obviously wrong with this file (it is named correctly url.co.conf ) or is there something else that could be causing this issue?