I am trying to get wild card sub domains working on my project here and it does seem to be working but i have come across some very odd behaviour here, every time i try to visit any subdomain instead of showing me the page on screen it automatically downloaded it, i have checked and it is the correct file but like i said instead of displaying the page it is like it is being forced downloaded - which is certainly didn't set
My code is below
the code used in httpd.conf
<VirtualHost 126.96.36.199> ServerAlias *.abc.com DocumentRoot /var/www/vhosts/abc.com/httpdocs/test ServerName *.abc.com </VirtualHost>
i also have the wild card domain set as a CNAME, some people say use an A record and some a CNAME which is the right one and how should be done ?
Thanks very much