I have a dedicated server running centos 5.5. I have been messing around with a virtual website via webmin and I think the apache settings messed up some how. When i type in the url without the www. it works fine but if I enter www. it goes to 403 error page

link|improve this question
1  
Do you have a ServerName or ServerAlias on a block that specifies one name (site.com) but not the other (www.site.com)? – Borealid Apr 21 '11 at 4:57
feedback

migrated from stackoverflow.com Apr 21 '11 at 21:36

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

1 Answer

It seems like apache loads your default vhost (in case it doesn't find the requested ServerName). Check the configuration files yourself for missing ServerAlias. You can also add CNAME record if you own the domain zone.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.