Hi All, I am trying to get the following to work. www.domain.co.uk domain.com to go to /home/somedir1 and then *.domain.com to go to /home/somedir2 however this doesn't appear to be working as expceted. To difirenciate I have the two vhosts pointing to seperate logfiles and it appears that if I try to go to say cheese.domain.com I am being directed to /home/somedir1 as opposed to /home/somedir2. My vhost.conf file is below, any pointers would pe appreciated. Is it that I actually need to use a seperate ip address for the wildcard domain?
NameVirtualHost <ip.add.re.ss>:80 <VirtualHost<ip.add.re.ss>:80> ServerName www.domain.co.uk ServerAlias subdomain.domain.co.uk domain.co.uk ServerAdmin admin@address DocumentRoot /home/somedir1 CustomLog /home/logs/domain.co.uk/access_log combined ErrorLog /home/logs/domain.co.uk/error_log </VirtualHost> <VirtualHost<ip.add.re.ss>:80> ServerName *.domain.co.uk ServerAdmin admin@address DocumentRoot /home/somedir2 CustomLog /home/logs/domain.co.uk/wild_access_log combined ErrorLog /home/logs/domain.co.uk/wild_error_log </VirtualHost> By my reckoning this should work fine. I haven't seen anything that suggests that this is not possible. Thanks in advance. -- Callum