Forum Moderators: phranque
I want to do www.example.com that points to a directory such as /var/www/www.example.com and aaa.example.com to point to a directory called /var/www/aaa.example.com.
So far I have this code:
<VirtualHost 000.000.000.000:0000>
ServerName www.example.com
DocumentRoot /var/www/www.example.com
</VirtualHost>
<VirtualHost 000.000.000.000:0000>
ServerName aaa.example.com
DocumentRoot /var/www/aaa.example.com
</VirtualHost>
So far Apache keeps directing me to the first virtualhost. The only other thing that I have done, is at my domain provider, added a subdomain (aaa)that points to www.example.com and masked it with aaa.example.com.
What gives?