Skip to content

Instantly share code, notes, and snippets.

@oogali
Created September 10, 2015 15:42
Show Gist options
  • Save oogali/29e32fe54065674656db to your computer and use it in GitHub Desktop.
Save oogali/29e32fe54065674656db to your computer and use it in GitHub Desktop.
Observium Nginx configuration
server {
listen 80;
server_name observium.yourdomain.com;
access_log /var/log/nginx/observium-access_log combined;
error_log /var/log/nginx/observium-error_log warn;
root /opt/observium/html;
client_max_body_size 10m;
client_body_buffer_size 8K;
client_header_buffer_size 1k;
large_client_header_buffers 4 8k;
location / {
index index.php index.html index.htm;
autoindex on;
try_files $uri $uri/ /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
Copy link

ghost commented Nov 30, 2016

Ugh, thanks so much. I was missing the damned try_files line.

Works perfectly with my uwsgi setup now. Thanks!

pinboard'd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment