#server { # server_name zabbix.acme.fr; # return 301 https://zabbix.lan$request_uri; #} server { #listen 443; listen 80; server_name zabbix.acme.fr; access_log /var/log/nginx/zabbix.log; error_log /var/log/nginx/zabbix.error; #ssl on; #ssl_certificate /etc/ssl/certs/zabbix.crt; #ssl_certificate_key /etc/ssl/private/zabbix.key; root /usr/share/zabbix/; index index.php index.html; client_max_body_size 5m; client_body_buffer_size 128k; #location ~ /setup\.php { # deny all; #} location ~ \.php$ { fastcgi_pass unix:/var/run/zabbix.socket; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param SCRIPT_NAME $fastcgi_script_name; } location ~* \.(jpg|jpeg|png|gif|css|js|ico)$ { expires max; log_not_found off; } location ~ /\.ht { deny all; } location ~ /\. { deny all; } }