Created
December 3, 2014 07:13
-
-
Save omkar0001/be45a4b19714ab73248c to your computer and use it in GitHub Desktop.
zabbix-nginx
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 { | |
# 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