diff --git a/roles/httpd/redirect/templates/redirect.copr.conf b/roles/httpd/redirect/templates/redirect.copr.conf index 8bf42ed1d0..6246949d28 100644 --- a/roles/httpd/redirect/templates/redirect.copr.conf +++ b/roles/httpd/redirect/templates/redirect.copr.conf @@ -1,3 +1,3 @@ RewriteEngine on -RewriteCond %{REQUEST_URI} !^/api +RewriteCond %{REQUEST_URI} !^/api_ RewriteRule ^/(.*) https://copr.fedorainfracloud.org/$1 [L,R] diff --git a/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf b/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf index f44cfd73c8..6db8057955 100644 --- a/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf +++ b/roles/httpd/reverseproxy/templates/reversepassproxy.coprapi.conf @@ -11,7 +11,7 @@ RequestHeader set X-Scheme https early RequestHeader set X-Forwarded-Proto https early {% endif %} -{% for path in ('api', 'api_2', 'api_3') %} +{% for path in ('api_2', 'api_3') %} ProxyPass /{{path}} https://copr.fedorainfracloud.org/{{path}} ProxyPassReverse /{{path}} https://copr.fedorainfracloud.org/{{path}} {% endfor %}