Created
December 16, 2014 19:04
-
-
Save vandorjw/a69a0f4ed6028768d6a4 to your computer and use it in GitHub Desktop.
nginx server block for piwik
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
| 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