Created
September 10, 2015 15:42
-
-
Save oogali/29e32fe54065674656db to your computer and use it in GitHub Desktop.
Observium Nginx configuration
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 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; | |
} | |
} | |
} |
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
Installing Observium on FreeBSD with Nginx?
You're crazy. I'm crazy. Let's be eccentric together.