Sorry if this is answered somewhere else but can't figure it out. Cant get my server to respond on the subdomain, only the main domain. Relevant info below, if you need more let me know.
Listen 10.0.1.191:80
ServerName server.local:80 (i know a bit stupid but logical for me and it works)
NameVirtualHost 10.0.1.191:80
<VirtualHost 10.0.1.191:80>
ServerName www.server.local
ServerAlias server.local
DocumentRoot /var/www/html/
</VirtualHost>
<VirtualHost 10.0.1.191:80>
ServerName qtp.server.local
DocumentRoot /var/www/qtp/
</VirtualHost>
Cheers
Edit: Actually only the root works, neither virtualhost resolves. ie www.server.local doesn't resolve though server.local does