From: root Date: Thu, 1 Nov 2018 08:31:25 +0000 (+0100) Subject: piwik installation first step X-Git-Url: https://git.hoellein.online/?a=commitdiff_plain;h=b3436da1bb5bfbad4a42aa01d8d46bef5589d8b5;p=vserver piwik installation first step --- diff --git a/.etckeeper b/.etckeeper index 9d572e3cd..652958746 100755 --- a/.etckeeper +++ b/.etckeeper @@ -225,6 +225,7 @@ maybe chmod 0644 'apache2/sites-available/default-ssl.conf' maybe chmod 0644 'apache2/sites-available/hoellein.online.conf' maybe chmod 0644 'apache2/sites-available/nextcloud.conf' maybe chmod 0644 'apache2/sites-available/nextcloud_siedlerverein.conf' +maybe chmod 0644 'apache2/sites-available/piwik.conf' maybe chmod 0644 'apache2/sites-available/siedlerverein.conf' maybe chmod 0644 'apache2/sites-available/siedlerverein_local.conf' maybe chmod 0755 'apache2/sites-enabled' diff --git a/apache2/sites-available/piwik.conf b/apache2/sites-available/piwik.conf new file mode 100644 index 000000000..3fa165755 --- /dev/null +++ b/apache2/sites-available/piwik.conf @@ -0,0 +1,60 @@ + + Header always set Strict-Transport-Security "max-age=15552000; includeSubDomains; preload" + + + + Header set Referrer-Policy "no-referrer" + ServerAdmin webmaster@localhost + DocumentRoot /var/www/piwik/ + ServerName piwik.hoellein.online:443 + ServerAlias piwik.hoellein.online + + Options FollowSymLinks + AllowOverride all + + + SetEnv HOME /var/www/piwik + SetEnv HTTP_HOME /var/www/piwik + Options Indexes FollowSymLinks MultiViews + AllowOverride All + Require all granted + + + Require all denied + Satisfy All + + RewriteEngine on + ScriptAlias /cgi-bin/ /var/www/piwik/cgi-bin/ + + AllowOverride None + Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch +# Order allow,deny +# Allow from all + Require all granted + + + + # Possible values include: debug, info, notice, warn, error, crit, + # alert, emerg. + LogLevel debug + ErrorLog ${APACHE_LOG_DIR}/piwik.hoellein.online_error.log + CustomLog ${APACHE_LOG_DIR}/piwik.hoellein..online_access.log combined + + # SSL Engine Switch: + # Enable/Disable SSL for this virtual host. + SSLEngine on + SSLProtocol all -SSLv2 -SSLv3 + + SSLOptions +StdEnvVars + + + SSLOptions +StdEnvVars + + + SSLCertificateFile /etc/letsencrypt/live/nextcloud.hoellein.online/cert.pem + SSLCertificateKeyFile /etc/letsencrypt/live/nextcloud.hoellein.online/privkey.pem + SSLCertificateChainFile /etc/letsencrypt/live/nextcloud.hoellein.online/chain.pem + SSLOpenSSLConfCmd DHParameters /etc/letsencrypt/live/hoellein.online/dhparams_2048.pem + + + diff --git a/apache2/sites-enabled/piwik.conf b/apache2/sites-enabled/piwik.conf new file mode 120000 index 000000000..66cb144f9 --- /dev/null +++ b/apache2/sites-enabled/piwik.conf @@ -0,0 +1 @@ +../sites-available/piwik.conf \ No newline at end of file