Created
January 29, 2013 06:49
-
-
Save youyo/4662327 to your computer and use it in GitHub Desktop.
/etc/nginx/conf.d/nginx_zabbix.conf
This file contains 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 your.webserver; | |
root /var/www/nginx; | |
index index.html; | |
access_log /var/log/nginx/zabbix/access_log main; | |
error_log /var/log/nginx/zabbix/error_log error; | |
location /zabbix { | |
index index.php; | |
} | |
location ~ \.php$ { | |
fastcgi_pass unix:/var/run/php-fpm/zabbix.socket; | |
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