Skip to content

Instantly share code, notes, and snippets.

@youyo
Created January 29, 2013 06:49
Show Gist options
  • Save youyo/4662327 to your computer and use it in GitHub Desktop.
Save youyo/4662327 to your computer and use it in GitHub Desktop.
/etc/nginx/conf.d/nginx_zabbix.conf
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