wordpress-nginx-main/sites-available/catchall.conf
hhftechnologies dd82b3e56c update
2024-09-28 17:48:20 +05:30

28 lines
571 B
Text

# Ref - http://wiki.nginx.org/ServerBlockExample#A_Default_.22Catch_All.22_Server_Block
server {
listen 80 default_server;
server_name _;
access_log off;
error_log off;
# return nothing
# a Nginx specific error code
# return 444;
# deny all
# include globals/error-pages.conf;
location / {
return 403;
}
# Let Varnish or others ping to know the status of PHP-FPM
location /ping {
allow 127.0.0.1;
deny all;
fastcgi_pass fpm;
keepalive_timeout 0;
expires -1;
}
}