Skip to content

Instantly share code, notes, and snippets.

@eksiscloud
Created January 27, 2020 16:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eksiscloud/8f7e62acc82b5f2e6228690fb64331ff to your computer and use it in GitHub Desktop.
Save eksiscloud/8f7e62acc82b5f2e6228690fb64331ff to your computer and use it in GitHub Desktop.
Basic virtual host for Matomo in Apache2
<VirtualHost *:80>
ServerAdmin webmaster@localhost
ServerName analytics.example.com
DocumentRoot /var/www/matomo/
<Directory /var/www/matomo>
DirectoryIndex index.php
Options FollowSymLinks
AllowOverride All
Require all granted
</Directory>
<Files "console">
Options None
Require all denied
</Files>
<Directory /var/www/matomo/misc/user>
Options None
Require all granted
</Directory>
<Directory /var/www/matomo/misc>
Options None
Require all denied
</Directory>
<Directory /var/www/matomo/vendor>
Options None
Require all denied
</Directory>
ErrorLog ${APACHE_LOG_DIR}/matomo_error.log
CustomLog ${APACHE_LOG_DIR}/matomo_access.log combined
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment