Report this

What is the reason for this report?

My website not work when there is www at the beginning od website's address

Posted on February 19, 2015

Hi. I finally moved my website, but I have problem. When I type example.com (not my actual website address) in my browser, the site works like a charm. But when I type www.example.com, then I have this error: “Server not found. Firefox can’t find the server at www.example.com”.

I have proper DNS addresses set in my domain register (ovh.com) and added to DO’s DNS section. I’m using Ubuntu 14.04 x64 with Sentora panel. Domain added via Sentora panel and files uploaded to domain’s public_html folder created by Sentora. I’ve checked Sentora virtual host file (httpd-vhosts.conf) and my domain has proper addresses:

ServerName example.com
ServerAlias  www.example.com

Can anyone tell me what should I do, to make it work?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

This comment has been deleted

You need to configure DNS to resolve www. A CNAME might do it.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.