I am trying to setup subdomains using apache VirtualHosts. What I got so far is:
NameVirtualHost *:80
<VirtualHost *:80>
ServerName www.domain.aa
DocumentRoot /var/www/html
</VirtualHost>
<VirtualHost *:80>
ServerName wiki.domain.aa
DocumentRoot /var/www/html/wiki
</VirtualHost>
This config works quite well, the subdomain shows up when typing wiki.domain.aa in the browser. Yet, only the first page shows up. Whenever the browser tries to load an url backed by the subdomain (for exmaple wiki.domain.aa/style.css) I get a file not found error ...
Has anyone got an idea what this is about?
Thank you very much in advance. Matthias