mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-24 18:41:38 +08:00
28 lines
835 B
Plaintext
28 lines
835 B
Plaintext
|
|
AllowEncodedSlashes NoDecode
|
|
|
|
# Reverse-proxy /buildid/* queries
|
|
ProxyPassMatch "^/buildid/(.*)$" "{{proxyurl}}/buildid/$1" {{proxyopts}}
|
|
|
|
# Reverse-proxy /metadata* queries
|
|
ProxyPassMatch "^/metadata(.*)$" "{{proxyurl}}/metadata$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.)
|