Created
March 10, 2014 12:55
-
-
Save tigrus/9464510 to your computer and use it in GitHub Desktop.
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 { | |
server_name zabbix.your.domain.com; | |
access_log /home/tlpls/prtp/logs/access.log main; | |
#IMPORTANT: this is where you look for errors and such | |
error_log /home/tlpls/prtp/logs/error.log debug; | |
#this is for the static files | |
#should point to where your zabbix frontend files are | |
location / { | |
root /usr/share/zabbix; | |
index index.php index.html index.htm; | |
} | |
#and this is what to do with php files | |
#same paths probably | |
location ~ \.php$ { | |
root /usr/share/zabbix; | |
fastcgi_pass 127.0.0.1:9001; | |
fastcgi_index index.php; | |
fastcgi_param SCRIPT_FILENAME /usr/share/zabbix$fastcgi_script_name; | |
include fastcgi_params; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment