Forked from oogali/etc-nginx-conf.d-observium.conf
Created
February 18, 2016 10:23
-
-
Save ivanionut/903e63371882cf014f5d 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; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment