Linode Forum
https://forum.linode.com/

Domain not working without 'www' infront of name
https://forum.linode.com/viewtopic.php?f=19&t=4824
Page 1 of 1

Author:  vinacademy [ Wed Nov 11, 2009 7:17 am ]
Post subject:  Domain not working without 'www' infront of name

Hi,

My domain name is www.vindhyachalacademy.org. As you can see, it is temporarily up. However, when I try to access it via http://vindhyachalacademy.org or even the IP address, I get the default apache page.

I installed apache using VirtualNaming scheme as suggested in the Linode Library.

I couldn't get anything from this question http://www.linode.com/forums/viewtopic.php?t=4787.

Any pointers?

Thanks!

Author:  rweir [ Wed Nov 11, 2009 7:26 am ]
Post subject: 

You probably have a "ServerName www.blah.org" line but no "ServerAlias blah.org" line. Add it underneath ServerName, and restart Apache. If that doesn't work, show us the whole VirtualHosting block.

Author:  vinacademy [ Wed Nov 11, 2009 7:39 am ]
Post subject: 

Thanks for the quick reply.

Here it is:

<VirtualHost *:80>
ServerAdmin mail@vindhyachalacademy.org
ServerName vindhyachalacademy.org
ServerAlias www.vindhyachalacademy.org
DocumentRoot /srv/www/vindhyachalacademy.org/public_html
ErrorLog /srv/www/vindhyachalacademy.org/logs/error.log
CustomLog /srv/www/vindhyachalacademy.org/logs/access.log combined
</VirtualHost>

Author:  BarkerJr [ Wed Nov 11, 2009 8:18 am ]
Post subject: 

Can you tell if the VirtualHost is actually working? i.e. add a redirect to it and see if that takes effect.

Author:  vinacademy [ Wed Nov 11, 2009 9:26 am ]
Post subject: 

It must be working because the root folder (for the Website) etc are specified here only, right?

Author:  BarkerJr [ Wed Nov 11, 2009 10:20 pm ]
Post subject: 

I don't know. If you're new to apache, you might have added it multiple places till you got it right. You could try commenting it out and see if it is the only place.

Author:  abhishek [ Fri Nov 13, 2009 3:25 pm ]
Post subject: 

vinacademy did you get a right answer for this question. I see your site is working with and without www.

Can you share with us how did you manage to do it?

Thanks!

Author:  acascais [ Thu Dec 10, 2009 12:45 pm ]
Post subject: 

I'd like to know this too, since I have the same problem...
Thank you

Author:  vinacademy [ Sun Jan 03, 2010 3:07 am ]
Post subject: 

Hi,

Sorry for the late reply. I didn't get any reminder on email from the forum that there are further replies to this thread. Don't know if this would be useful for you or not, but I followed the following procedure:

1. Go to DNS Manger.
2. Add an 'A' record with Domain Name (of course, without www), and proper IP address.
3. Follow Linode Library's docs on how to configure Apache Server.

HTH

Saurabh.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/