Skip to content

Commit

Permalink
Update nginx.docs-backend.conf (#312)
Browse files Browse the repository at this point in the history
The `^~` modifier makes this rule take priority priority over 
regex (specifically the `pdf|zip|epub|bz2` regex above),
see https://nginx.org/en/docs/http/ngx_http_core_module.html#location
  • Loading branch information
encukou committed Mar 23, 2023
1 parent d77665f commit bb6e11c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/docs/config/nginx.docs-backend.conf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ server {
}

# Some doc download pages link to docs.python.org/ftp instead of www.python.org/ftp.
location /ftp/ {
location ^~ /ftp/ {
return 301 https://www.python.org$request_uri;
}

Expand Down

0 comments on commit bb6e11c

Please sign in to comment.