Greetings!
Important information: Running Apache 2.4.6 on Ubuntu 12.04. I have the vhost_alias module running.
I'm trying to set up a virtual host on my local machine, and for some reason when I go to example.com it routes me to /var/www instead of /var/www/example/wordpress, as I'm hoping it to do.
The following is the configuration in the sites-available folder, which I enable using a2ensite example:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example/wordpress
<Directory /var/www/example/wordpress>
Options Indexes FollowSymLinks Includes
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/apache2/example-error.log
</VirtualHost>
I also added the following line to the /etc/hosts file:
127.0.0.1 example.com
As far as I can tell, it's this simple. Am I missing something?