I am creating a new web server using Ubuntu 14.0, following the instructions here for creating virtual hosts, however my only additional virtual host always loads the default site (/ var / www / html).
Here is my vhost configuration (I replaced my example.com domain, but otherwise it is identical):
<VirtualHost *:80>
ServerName example.com
ServerAlias www.example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/example/app
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
I DID NOT CHANGE OTHER CHANGES in the Apache 2.4 configuration that is installed on Ubuntu 14.
EDIT: I correctly resolve sites and restart apache after making changes to this vhost.
When I visit example.com in my browser, I get the default site. What am I doing wrong? How to force a virtual host to load the correct directory?
EDIT: "sudo" (qaru.site/questions/195211/...).