Need some help to redirect to a mobile subdomain. Currently both m.domain.com and domain.com will go to var/www/html/mobile. Obviously I need domain.com to direct to var/www/html and m.domain.com to var/www/html/mobile
I have disabled ServerName and my aliases are correct..
Currently my virtualhosts are:
<VirtualHost *:80>
ServerName DOMAIN.com
DocumentRoot "/var/www/html"
</VirtualHost>
#VirtualHost to redirect m.DOMAIN to mobile directory
<VirtualHost m.DOMAIN.com:80>
ServerName m.DOMAIN.com
DocumentRoot "/var/www/html/mobile"
</VirtualHost>
Could someone please point me in the right direction?