Linode Forum Index Linode Forum
Linode Community Forums
 


Domain not working without 'www' infront of name

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
vinacademy



Joined: 20 Oct 2009
Posts: 4

Posted: Wed Nov 11, 2009 6: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!
Back to top  
rweir



Joined: 09 Jan 2008
Posts: 15

Posted: Wed Nov 11, 2009 6: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.
Back to top  
vinacademy



Joined: 20 Oct 2009
Posts: 4

Posted: Wed Nov 11, 2009 6: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>
Back to top  
BarkerJr



Joined: 02 Aug 2009
Posts: 220
Location: Connecticut, USA

Posted: Wed Nov 11, 2009 7: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.
Back to top  
vinacademy



Joined: 20 Oct 2009
Posts: 4

Posted: Wed Nov 11, 2009 8:26 am    Post subject:  

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



Joined: 02 Aug 2009
Posts: 220
Location: Connecticut, USA

Posted: Wed Nov 11, 2009 9: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.
Back to top  
abhishek



Joined: 13 Nov 2009
Posts: 5

Posted: Fri Nov 13, 2009 2: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!
Back to top  
acascais



Joined: 10 Dec 2009
Posts: 1

Posted: Thu Dec 10, 2009 11:45 am    Post subject:  

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



Joined: 20 Oct 2009
Posts: 4

Posted: Sun Jan 03, 2010 2: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.
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1