Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|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
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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