Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Apr 07, 2011 11:11 pm 
Offline
Newbie

Joined: Sat Jan 01, 2011 2:53 pm
Posts: 4
I recently created a subdomain for a website on my linode, and it made the non-www of that website display a 403 Forbidden error. It used to work fine before I added the subdomain.

I'm running Ubuntu 10.04 with LAMP with virtual hosting set up. I added a new file to my apache sites-available directory called subdomain.mydomain.com with this info (along with error logs, server admin, etc):

Code:
<VirtualHost 173.x.x.x:80>
     ServerName subdomain.mydomain.com
     ServerAlias www.subdomain.mydomain.com
     DocumentRoot /srv/www/path_to_files
</VirtualHost>


The file for mydomain.com has virtually the same info:

Code:
<VirtualHost 173.x.x.x:80>
     ServerName mydomain.com
     ServerAlias www.mydomain.com
     DocumentRoot /srv/www/path_to_other_files
</VirtualHost>


I added an A Record for the subdomain in my Linode DNS Manager, and enabled it in apache. Now it works, and so does www.mydomain.com, but mydomain.com isn't.

I can't figure out how to fix it. Help!

Thanks in advance.


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


Who is online

Users browsing this forum: No registered users and 2 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