ansible/roles/httpd/reverseproxy/templates/reversepassproxy.debuginfod.conf
Frank Ch. Eigler ab51e82014 debuginfod: balance redirect & reverse-proxy better
Our ansible default ansible scripts don't like multiple /suburls being
individually proxied, so we ended up losing /buildid/* and keeping
/metrics.

Switch to using single /-level reverse-proxying AND wiki-redirection
clauses, and use a new template .conf file to break the tie with a
"ProxyPass / !"  directive.
2021-05-11 09:10:34 -04:00

10 lines
330 B
Text

# Broadly reverse-proxy
ProxyPassMatch "^(.*)$" "{{proxyurl}}$1" {{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://sourceware.org/elfutils/Debuginfod.html