Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu Sep 11, 2014 4:39 pm 
Offline
Senior Newbie

Joined: Thu Sep 11, 2014 4:25 pm
Posts: 6
So I'm in the process of setting up piwik on my linode and I've been following this guide https://www.linode.com/docs/uptime/anal ... e-pangolinhttps://www.linode.com/docs/uptime/analytics/piwik-on-ubuntu-12-04-precise-pangolin

I'm at the point where I am configuring a dedicated Virtual Host for Piwik. I already added a new A record for the subdomain through my linode DNS tools. My next step is to create the subdomain host file in apache. In the linode guide it says to create a file like this:

/etc/apache2/sites-available/stats.example.org

But when I created virtual host files before for the main domain I added .conf at the end like this:

/etc/apache2/sites-available/example.org.conf

Is this an error in the linode guide? Should my subdomain host file end in .conf? Or is it different when creating subdomains?

Also

Do I need to add any other DNS records besides an A record when creating a subdomain? Like a cname record etc?


Top
   
PostPosted: Thu Sep 11, 2014 6:05 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
saladdays,
The .conf extension is option. Many people use it because it clearly identifies what type of file it is (a configuration file).

You could use a CName record that points to your primary A record. I usually add an A record for a subdomain so I can point the subdomain to a different server if I ever want/need to.


Top
   
PostPosted: Sun Sep 14, 2014 10:05 am 
Offline
Senior Newbie

Joined: Wed Sep 03, 2014 2:00 pm
Posts: 13
Main Street James wrote:
saladdays,
The .conf extension is option. Many people use it because it clearly identifies what type of file it is (a configuration file).

You could use a CName record that points to your primary A record. I usually add an A record for a subdomain so I can point the subdomain to a different server if I ever want/need to.


It's a really good idea to use .conf because (for example) during the upgrade from Apache 2.2 to 2.4, if you weren't using .conf on your virtual hosts then they stopped working.

From Linode's own documentation:

"Ubuntu and Debian: Virtual host configuration files in the sites-available directory must now use the .conf extension"


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