diff --git a/docs/u_e-80_to_443.md b/docs/u_e-80_to_443.md index eaafd06e3..514a45cdc 100644 --- a/docs/u_e-80_to_443.md +++ b/docs/u_e-80_to_443.md @@ -26,6 +26,7 @@ server { listen 80 default_server; listen [::]:80 default_server; include /etc/nginx/conf.d/server_name.active; + if ( $request_uri ~* "%0A|%0D" ) { return 403; } return 301 https://$host$uri$is_args$args; } ```