Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Aug 06, 2011 9:00 pm 
Offline
Newbie

Joined: Sat Aug 06, 2011 8:31 pm
Posts: 2
New to Linode and Linux. I was able to to build a LAMP server and install wordpress using the great library here. However, my website can not be view at example.com. Instead, I need to type in www.example.com. What is the best way to fix this? I have tried to google this problem but there are so many solutions. I am just looking for the most efficient solution. Thanks a lot for your help!


Top
   
 Post subject:
PostPosted: Sat Aug 06, 2011 9:08 pm 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
In the linode DNS manager, make sure that the zone itself is example.com, and you have A records for (blank) and www hostnames pointed at your node's IP.

Then ensure that your webserver's configs are set to serve content for both example.com and www.example.com. In apache, this means you should have a "ServerName www.example.com" and a "ServerAlias example.com" line


Top
   
 Post subject:
PostPosted: Sun Aug 07, 2011 1:49 am 
Offline
Newbie

Joined: Sat Aug 06, 2011 8:31 pm
Posts: 2
Thanks a lot. Exactly what I needed.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group