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 11.11.11.11>
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

link|improve this question
I'm way too late, of course, but don't double post. When this accumulated enough vote it will be moved automatically. Better yet, you can vote to move your own questions. Choose "close" (I know, I know) and select the reason "belongs on serversault.com". – dmckee Jan 21 '10 at 0:51
I know it's probably a year too late, but: That seems like a MIME type problem. If you solved your problem on your own, please post an answer to it. – Nupraptor Jan 20 '11 at 4:16
feedback

migrated from stackoverflow.com Jan 21 '10 at 1:11

This question came from our site for professional and enthusiast programmers.

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.