Skip to content

Instantly share code, notes, and snippets.

@tigrus
Created March 10, 2014 12:55
Show Gist options
  • Save tigrus/9464510 to your computer and use it in GitHub Desktop.
Save tigrus/9464510 to your computer and use it in GitHub Desktop.
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