Trouble setting up subdomain for Piwik Install
I think the sites-enabled file is properly configured for the subdomain ('user' is stand-in for actual user):
> # domain: stats.site.org
public: /home/user/public/stats.site.org/
ServerAdmin admin@stats.site.org ServerName stats.site.org
ServerAlias stats.site.org
DirectoryIndex index.html index.php
DocumentRoot /home/user/public/stats.site.org/public
LogLevel warn
ErrorLog /home/user/public/stats.site.org/log/error.log
CustomLog /home/user/public/stats.site.org/log/access.log combined
a2ensite and apache2 restart have been successful. "A" record has been created for stats in DNS manager and is pointed to the same IP address as the primary domain.
Can anyone offer advice on what I've forgotten?
Thanks!
2 Replies
> Can anyone offer advice on what I've forgotten?
Your question and explanation as to what is wrong
Also, you don't need the "ServerAlias" line since it's the same as your "ServerName" line.