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.

Possible Duplicate:
Enable acess without WWW on Ubuntu

I have a 'clean' CentOS system with webmin, running Apache2 and BindDNS.

When I try accessing the domain without www, I get instantly redirected to www.domain.name, as the Firebug Net console screenshot below displays

http://pokit.etf.ba/upload/pokit141661fa46b11782745bb974d5140004.png

What I need to know is; which are the most often reasons for this?

If you need any more info, cfg or log files, please let me know

share|improve this question

marked as duplicate by Dennis Williamson, Zypher, splattne Apr 15 '10 at 6:16

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
I believe this is not a problem with your server but with your browser. What browser and OS are you using? –  Melvin Apr 14 '10 at 12:07
    
Look at the related questions at the lower right of this page. –  Dennis Williamson Apr 14 '10 at 13:39

1 Answer 1

Most likely scenario is a vhost configuration in apache set to something like:

<VirtualHost *:80>
    ServerName non-www-domain.com
    ServerAlias potential.com
    ServerAlias other-names.com

    Redirect / http://www.domain.com/
</VirtualHost>

However I do wonder if it's your browser or DNS.

Check if domain.com and www.domain.com resolve to the same IP, if not then you might be looking at the wrong server. If one doesn't resolve then it's certainly the browser doing the redirect.

share|improve this answer

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