Skip to content

Instantly share code, notes, and snippets.

@vandorjw
Created December 16, 2014 19:04
Show Gist options
  • Select an option

  • Save vandorjw/a69a0f4ed6028768d6a4 to your computer and use it in GitHub Desktop.

Select an option

Save vandorjw/a69a0f4ed6028768d6a4 to your computer and use it in GitHub Desktop.
nginx server block for piwik
server {
listen 80;
server_name piwik.vandorjw.ca;
root /srv/piwik/piwik;
index index.php index.html index.htm;
access_log /var/log/nginx/ca/vandorjw/piwik/access.log;
error_log /var/log/nginx/ca/vandorjw/piwik/error.log;
location / {
include uwsgi_params;
uwsgi_modifier1 14;
uwsgi_pass unix:///run/uwsgi-emperor/ca_vandorjw_piwik.sock;
}
error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment