debuginfod redirect+proxy: combine into handcrafted httpd conf file
This commit is contained in:
parent
c9ee450c6a
commit
7185d7774e
2 changed files with 8 additions and 16 deletions
|
@ -872,13 +872,3 @@
|
||||||
website: qa.fedoraproject.org
|
website: qa.fedoraproject.org
|
||||||
path: /
|
path: /
|
||||||
target: https://fedoraproject.org/wiki/QA
|
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
|
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,17 @@
|
||||||
|
|
||||||
# Broadly reverse-proxy
|
# Reverse-proxy /buildid/* queries
|
||||||
ProxyPassMatch "^/(.*)$" "{{proxyurl}}/$1" {{proxyopts}}
|
ProxyPassMatch "^/buildid/(.*)$" "{{proxyurl}}/buildid/$1" {{proxyopts}}
|
||||||
|
|
||||||
|
# Reverse-proxy /metrics - without (...) grouping op, URL just gets copied
|
||||||
|
ProxyPassMatch "^/metrics$" "{{proxyurl}}" {{proxyopts}}
|
||||||
|
|
||||||
ProxyPassReverse / {{proxyurl}}/
|
ProxyPassReverse / {{proxyurl}}/
|
||||||
|
|
||||||
# ... but not the top level, which is instead redirected
|
# ... but not the top level, which is instead redirected
|
||||||
ProxyPass / !
|
ProxyPass / !
|
||||||
|
|
||||||
# ... configure this redirect in playbooks/include/proxies-redirects.yml
|
# Redirect / URL over to wiki
|
||||||
# Redirect permanent / https://fedoraproject.org/wiki/Debuginfod
|
Redirect permanent / https://fedoraproject.org/wiki/Debuginfod
|
||||||
# (or e.g.,)
|
|
||||||
# Redirect permanent / https://sourceware.org/elfutils/Debuginfod.html
|
|
||||||
|
|
||||||
# test it with:
|
# test it with:
|
||||||
#
|
#
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue