So I have written a configuration file and activated it / reloaded Apache2:
Code:
<VirtualHost *:80>
ServerAdmin my@email.com
ServerName *.mydomain.com
DocumentRoot /home/xx/mydomain.com/.sub
<Directory />
Options Indexes SymLinksIfOwnerMatch
AllowOverride All
Order allow,deny
Allow from all
</Directory>
ErrorLog /home/xx/logs/error.log
CustomLog /home/xx/logs/access.log combined
</VirtualHost>
When I visit whatever.mydomain.com, it still gives me this error:
Code:
Forbidden
You don't have permission to access / on this server.
What am I doing wrong? Thanks!