Don't rewrite t/ prefix on global zuul vhost
We want the t/ prefix to survive to requests to the backend when we are hosting a global tenant UI. This rewrite appears to be causing 404s when /t/tenant/status is rewritten to /tenant/status. The upstream docs [0] also don't include this rewrite. [0] https://zuul-ci.org/docs/zuul/admin/installation.html#static-offload Change-Id: Id8f94581b9a1c8a383c7a0d40fb89ce49c50b2e3
This commit is contained in:
parent
7fdd302fd7
commit
375befe790
|
@ -45,7 +45,6 @@
|
|||
RewriteRule ^/api/console-stream <%= scope.lookupvar('::zuul::web::websocket_url') %>/api/tenant/<%= scope.lookupvar('::zuul::web::vhosts_flags_int')[@vhost_name]['tenant_name'] %>/console-stream [P,L]
|
||||
RewriteRule ^/api/(.*)$ <%= scope.lookupvar('::zuul::web::web_url') %>/api/tenant/<%= scope.lookupvar('::zuul::web::vhosts_flags_int')[@vhost_name]['tenant_name'] %>/$1 [P,L]
|
||||
<% else -%>
|
||||
RewriteRule ^/t/(.*) /$1 [L]
|
||||
RewriteRule ^/api/tenant/(.*)/console-stream <%= scope.lookupvar('::zuul::web::websocket_url') %>/api/tenant/$1/console-stream [P,L]
|
||||
RewriteRule ^/api/(.*)$ <%= scope.lookupvar('::zuul::web::web_url') %>/api/$1 [P,L]
|
||||
<% end -%>
|
||||
|
|
Loading…
Reference in New Issue