Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/templates/global.conf.erb

Issue 29805569: #12126 - Redirect aliases to a virtual host in filerserver role (Closed)
Patch Set: Created June 12, 2018, 7:36 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « modules/adblockplus/manifests/web/fileserver/repository.pp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/web/templates/global.conf.erb
===================================================================
--- a/modules/web/templates/global.conf.erb
+++ b/modules/web/templates/global.conf.erb
@@ -15,13 +15,13 @@
location /
{
- rewrite .* https://<%= @vhost %>/ redirect;
+ rewrite .* https://<%= @vhost or @repository_host %>/ redirect;
}
<%- else %>
location /
{
- rewrite .* http://<%= @vhost %>/ redirect;
+ rewrite .* http://<%= @vhost or @repository_host %>/ redirect;
}
<%- end %>
}
« no previous file with comments | « modules/adblockplus/manifests/web/fileserver/repository.pp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld