templates/default/zabbix-site.conf.erb
server {
listen 80;
server_name <%= @server_name %>;
root /usr/share/zabbix;
client_max_body_size 20m;
client_body_buffer_size 128k;
index index.php;
location ~* \.(jpg|jpeg|gif|png|css|js|ico|xml)$ {
access_log off;
log_not_found off;
expires max;
}
location ~* \.php$ {
fastcgi_index index.php;
fastcgi_pass <%= @fastcgi_listen %>:<%= @fastcgi_port %>;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SCRIPT_NAME $fastcgi_script_name;
fastcgi_param SERVER_NAME $host;
}
# deny access to hidden files
location ~ /\. {
access_log off;
log_not_found off;
deny all;
}
}