when I run a2ensite with "a2ensite www.example.com"I get the error
I've added a file in the sites-enabled folder in /etc/apache2/sitesenabledERROR: Site www.example.com does not exist!
I've added a site in /var/www/www.example.com/
I've even tried running a2ensite in each of the folders...
running a2ensite and pointing it to the file in the enabled-sites folder
gives the error:a2ensite /etc/apache2/sites-enabled/www.example.com
ERROR: No site found matching /etc/apache2/sites-enabled/www.example.com!
This is my www.example.com file in sites-enabled:
Where have I gone wrong?<VirtualHost *>
ServerAdmin webmaster@example.com
ServerName www.example.com
ServerAlias example.com
# Indexes + Directory Root.
DirectoryIndex index.html
DocumentRoot /var/www/www.example.com/
</VirtualHost>
Bookmarks