Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7122981
D7696.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
873 B
Subscribers
None
D7696.diff
View Options
diff --git a/site-modules/profile/templates/varnish/vhost.vcl.erb b/site-modules/profile/templates/varnish/vhost.vcl.erb
--- a/site-modules/profile/templates/varnish/vhost.vcl.erb
+++ b/site-modules/profile/templates/varnish/vhost.vcl.erb
@@ -16,6 +16,8 @@
set req.http.x-redir = "https://" + req.http.host + req.url;
return(synth(850, "Moved permanently"));
} else {
+ set req.backend_hint = <%= @backend_name %>;
+
<%- if @basic_auth -%>
if ( 1 == 1 # noop expression to be syntactically correct with the following &&
<%- @basic_auth_strings.each do | basic_auth_string | -%>
@@ -31,7 +33,6 @@
}
<% end -%>
set req.http.X-Forwarded-Proto = "https";
- set req.backend_hint = <%= @backend_name %>;
}
<% if @vcl_recv_extra -%>
<%= @vcl_recv_extra %>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 17, 2:24 PM (2 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3223651
Attached To
D7696: varnish: set the backend_hint as soon as possible
Event Timeline
Log In to Comment