Created
January 27, 2020 16:18
-
-
Save eksiscloud/8f7e62acc82b5f2e6228690fb64331ff to your computer and use it in GitHub Desktop.
Basic virtual host for Matomo in Apache2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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