We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7db9c9 commit bce19e6Copy full SHA for bce19e6
common/etc/nginx/templates/default.conf.template
@@ -30,6 +30,13 @@ server {
30
# information that could be used to find an exploit.
31
server_tokens off;
32
33
+ # Normalize location path. Remove instances of double/multipe forward slashes.
34
+ # Disabling merge_slashes is necessary for this feature to work.
35
+ # Disabling port redirection to avoid broken URLs in bridged hosts
36
+ port_in_redirect off;
37
+ merge_slashes off;
38
+ rewrite (.*?)//+(.*) $1/$2 redirect;
39
+
40
# Uncomment this for a HTTP header that will let you know the cache status
41
# of an object.
42
# add_header X-Cache-Status $upstream_cache_status;
0 commit comments