mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-30 21:41:53 +08:00
proxies / redirects: add trailing / to prevent unintended redirects
Without this you can get the redirect to redirect to another host. Not a super big problem, but definitely not intended. Hopefully just adding a tailing / will not break anything. Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -1 +1 @@
|
||||
Redirect 302 {{ path }} {{ target }}
|
||||
Redirect 302 {{ path }} {{ target }}/
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{% if redirectmatch_enabled %}
|
||||
RedirectMatch {{ status }} {{ regex }} {{ target }}
|
||||
RedirectMatch {{ status }} {{ regex }} {{ target }}/
|
||||
{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user