www and no www

Support for webhosts that use CentOS
Post Reply
DarkRain
Posts: 1
Joined: 2010/08/31 09:04:37

www and no www

Post by DarkRain » 2010/08/31 09:13:16

i have a problem .. i set a page


http://www.cronotermostat.ro/

but wen i put

http://cronotermostat.ro/ it is redirecting on another page on that server.. why?

how can i make it work

pschaff
Retired Moderator
Posts: 18276
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America
Contact:

www and no www

Post by pschaff » 2010/08/31 14:14:45

Welcome to the CentOS fora. The following reading is recommended for new users:
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14274&forum=47]Readme First[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14408&forum=47]Installing Software[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=14273&forum=47]Where to Find Answers[/url]
[url=http://www.centos.org/modules/newbb/viewtopic.php?topic_id=25128&forum=47]How to provide information about your system[/url]

[quote]
DarkRain wrote:
how can i make it work[/quote]

Hard to say without more information - you have not given us much to go on. Have you read the [url=http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/Deployment_Guide-en-US/ch-httpd.html]upstream docs[/url]? Are you using [url=http://httpd.apache.org/docs/2.2/vhosts/]virtual hosts[/url]?

logan
Posts: 64
Joined: 2008/08/01 16:40:34

Re: www and no www

Post by logan » 2010/09/10 22:13:23

You probably need to configure the vhost with the two different hostnames:
[code]<VirtualHost *:80>
ServerName www.cronotermostat.ro
ServerAlias cronotermostat.ro
DocumentRoot ...
</VirtualHost>[/code]

eLusive
Posts: 28
Joined: 2009/11/15 00:52:05

Re: www and no www

Post by eLusive » 2010/10/11 01:28:33

It's definitely a problem with your VirtualHost, all you need to do is go through it and make sure you have one that focusses on yoursite.com:80, not just *.yoursite.com:80

Post Reply

Return to “CentOS 5 - Webhosting Support”