Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #nginx configuration for Observium
- server {
- listen 80;
- server_name my.observium.org;
- access_log /var/log/nginx/observium.access.log;
- error_log /var/log/nginx/observium.error.log;
- root /path/to/observium/html;
- index index.php;
- error_page 500 502 503 504 /50x.html;
- location = /50x.html {
- root /usr/local/nginx/html;
- }
- location / {
- try_files $uri $uri/ @observium;
- }
- location @observium {
- rewrite ^(.+)$ /index.php/$1/ last;
- }
- location ~ \.php {
- fastcgi_pass 127.0.0.1:9000;
- fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
- include /etc/nginx/fastcgi_params;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement