return_204/config/nginx

22 lines
406 B
Plaintext
Raw Permalink Normal View History

2024-10-09 23:04:33 +00:00
server {
# listen http
listen 80;
# listen http, ipv6
listen [::]:80;
# listen https
listen 443;
# listen https, ipv6
listen [::]:443;
# REPLACE THE EXAMPLE DOMAIN BELOW
server_name subdomain.example.com;
# return 204 by default
return 204;
# intercept errors and redirect to 204
proxy_intercept_errors on;
error_page 500 502 503 504 =204;
}