diff --git a/states/nginx/templates/nginx.conf.j2 b/states/nginx/templates/nginx.conf.j2 index dedb35b..35920ce 100644 --- a/states/nginx/templates/nginx.conf.j2 +++ b/states/nginx/templates/nginx.conf.j2 @@ -33,9 +33,6 @@ http { fastcgi_intercept_errors on; fastcgi_read_timeout 300; - error_page 403 =403 /403.html; - error_page 404 =404 /fuck.html; - server { listen 80 default_server; listen 443 default_server ssl; @@ -54,4 +51,4 @@ http { deny all; } } -} \ No newline at end of file +} diff --git a/states/nginx/templates/types/zabbix.j2 b/states/nginx/templates/types/zabbix.j2 index b7a12a1..801b207 100644 --- a/states/nginx/templates/types/zabbix.j2 +++ b/states/nginx/templates/types/zabbix.j2 @@ -13,6 +13,10 @@ server { index index.php index.html; + location ~ setup.php$ { + return 403; + } + location ~ \.php?$ { include fastcgi_params; fastcgi_pass unix:{{ php_socket_file }};