Forum Moderators: phranque

Message Too Old, No Replies

VirtualHost and Subdomains

This should be trivial

         

kingscriber

1:52 am on May 19, 2007 (gmt 0)

10+ Year Member



Hello all. Despite my # of posts, I used to be a webmasterworld junkie and fell to the wayside about 2 years ago. Anyways I just installed apache and it's the first time I want to use subdomains.

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?

kingscriber

2:16 am on May 20, 2007 (gmt 0)

10+ Year Member



Well to my surprise what I have listed in my previous posts actually works. Turns out there was a combination of mono settings and domain settings with my domain provider that was causing the issue. I have something working right now, and I am pleased with it, I am just having some small issues right now with what appears to be mono....developing...