debuginfod redirect+proxy: combine into handcrafted httpd conf file

This commit is contained in:
Frank Ch. Eigler 2021-05-18 11:27:45 -04:00 committed by kevin
parent c9ee450c6a
commit 7185d7774e
2 changed files with 8 additions and 16 deletions

View file

@ -872,13 +872,3 @@
website: qa.fedoraproject.org
path: /
target: https://fedoraproject.org/wiki/QA
# redirects for debuginfod main page; subdirs are reverse-proxied
- role: httpd/redirect
shortname: debuginfod
website: debuginfod.fedoraproject.org
regex: ^/$
target: https://fedoraproject.org/wiki/Debuginfod
tags:
- debuginfod

View file

@ -1,15 +1,17 @@
# Broadly reverse-proxy
ProxyPassMatch "^/(.*)$" "{{proxyurl}}/$1" {{proxyopts}}
# 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 / !
# ... configure this redirect in playbooks/include/proxies-redirects.yml
# Redirect permanent / https://fedoraproject.org/wiki/Debuginfod
# (or e.g.,)
# Redirect permanent / https://sourceware.org/elfutils/Debuginfod.html
# Redirect / URL over to wiki
Redirect permanent / https://fedoraproject.org/wiki/Debuginfod
# test it with:
#