Skip to content

Instantly share code, notes, and snippets.

@omkar0001
Created December 3, 2014 07:13
Show Gist options
  • Save omkar0001/be45a4b19714ab73248c to your computer and use it in GitHub Desktop.
Save omkar0001/be45a4b19714ab73248c to your computer and use it in GitHub Desktop.
zabbix-nginx
server {
# This is the URI of your website. You can specify multiple sites to be
# served by the same Drupal installation.
server_name zabbix.dev;
# This is the root of the Drupal directory.
# Note that Drupal 6, Drupal 7, and Pressflow are interchangeable
root /usr/share/zabbix;
index index.php;
access_log /var/log/nginx/access.zabbix.log;
error_log /var/log/nginx/error.zabbix.log error;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include fastcgi_params;
# Intercepting errors will cause PHP errors to appear in Nginx logs
fastcgi_intercept_errors on;
#fastcgi_pass unix:/var/run/php-fpm.socket;
fastcgi_pass 127.0.0.1:9000;
}
location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ {
expires max;
log_not_found off;
}
location ~ /\.ht {
deny all;
}
location ~ /\. {
deny all;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment