mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-20 03:57:02 +08:00
pagure: fix order of operations to not block after proxying (which will not work)
Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
@@ -161,22 +161,6 @@ MaxConnectionsPerChild 1000
|
||||
{% endif %}
|
||||
</Location>
|
||||
|
||||
# proxy all requests to anubis after ssl termination
|
||||
|
||||
RequestHeader set "X-Real-Ip" expr=%{REMOTE_ADDR}
|
||||
RequestHeader set X-Forwarded-Proto "https"
|
||||
RequestHeader set "X-Http-Version" "%{SERVER_PROTOCOL}s"
|
||||
# Pagure uses X-Scheme, not X-Forwarded-Proto, see pagure/proxy.py
|
||||
RequestHeader set X-Scheme "https"
|
||||
|
||||
ProxyPreserveHost On
|
||||
|
||||
ProxyRequests Off
|
||||
ProxyVia Off
|
||||
|
||||
ProxyPass / http://[::1]:8923/
|
||||
ProxyPassReverse / http://[::1]:8923/
|
||||
|
||||
# Drop distributed web hits
|
||||
# RewriteEngine On
|
||||
# RewriteCond %{REQUEST_URI} ^/linux-forgeperf.*$
|
||||
@@ -193,6 +177,22 @@ MaxConnectionsPerChild 1000
|
||||
RewriteCond %{HTTP_USER_AGENT} "(Bytespider|ClaudeBot|Amazonbot|YandexBot|ChatGLM-Spider|GPTBot|Barkrowler|YisouSpider|MJ12bot)" [NC]
|
||||
RewriteRule .* - [F,L]
|
||||
|
||||
# proxy all requests to anubis after ssl termination
|
||||
|
||||
RequestHeader set "X-Real-Ip" expr=%{REMOTE_ADDR}
|
||||
RequestHeader set X-Forwarded-Proto "https"
|
||||
RequestHeader set "X-Http-Version" "%{SERVER_PROTOCOL}s"
|
||||
# Pagure uses X-Scheme, not X-Forwarded-Proto, see pagure/proxy.py
|
||||
RequestHeader set X-Scheme "https"
|
||||
|
||||
ProxyPreserveHost On
|
||||
|
||||
ProxyRequests Off
|
||||
ProxyVia Off
|
||||
|
||||
ProxyPass / http://[::1]:8923/
|
||||
ProxyPassReverse / http://[::1]:8923/
|
||||
|
||||
<Location /apache-status>
|
||||
SetHandler server-status
|
||||
<RequireAny>
|
||||
|
||||
Reference in New Issue
Block a user