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!

8 Replies

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.

Thanks for the quick reply.

Here it is:

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

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

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

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.

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!

I'd like to know this too, since I have the same problem…

Thank you

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct