Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
server {
listen 80;
access_log /var/log/nginx/piwik_access.log;
error_log /var/log/nginx/piwik_error.log;
root /opt/www/piwik;
# Static
location / {
index index.php;
location /config.ini.php {
root /opt/www/piwik/config;
index config.ini.php;
location ~ \.php$ {
try_files $uri =404;
include fastcgi_params;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_intercept_errors on;
fastcgi_split_path_info ^(.+\.php)(.*)$;
fastcgi_hide_header X-Powered-By;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.