mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-01 01:41:13 +08:00
Apache httpd by default blocks URL-encoded / (%2F) characters in the URL path, even though these are RFC-compliant. Enable them and permit their safe passage to the debuginfod servers. See also https://stackoverflow.com/a/9933890/661150 Signed-off-by: Frank Ch. Eigler <fche@redhat.com>
25 lines
726 B
Plaintext
25 lines
726 B
Plaintext
|
|
AllowEncodedSlashes NoDecode
|
|
|
|
# Reverse-proxy /buildid/* queries
|
|
ProxyPassMatch "^/buildid/(.*)$" "{{proxyurl}}/buildid/$1" {{proxyopts}}
|
|
|
|
# Reverse-proxy /metrics - without (...) grouping op, URL just gets copied
|
|
ProxyPassMatch "^/metrics$" "{{proxyurl}}" {{proxyopts}}
|
|
|
|
ProxyPassReverse / {{proxyurl}}/
|
|
|
|
# ... but not the top level, which is instead redirected
|
|
ProxyPass / !
|
|
|
|
# Redirect / URL over to wiki
|
|
Redirect permanent / https://fedoraproject.org/wiki/Debuginfod
|
|
|
|
# test it with:
|
|
#
|
|
# curl -i https://debuginfod.fedoraproject.org/
|
|
# curl -i https://debuginfod.fedoraproject.org/metrics
|
|
# curl -i https://debuginfod.fedoraproject.org/buildid/998feb12788309aa27465206ce4209be13ef5d9a/debuginfo
|
|
#
|
|
# (and ditto for .stg.)
|