Files
fedora-infra_ansible/roles/httpd/reverseproxy/templates/reversepassproxy.debuginfod.conf
Frank Ch. Eigler d835aba567 debuginfod proxies: preserve & pass %2F etc.
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>
2021-08-23 11:39:36 +00:00

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.)