[Varnish] #1812: Varnish 3.0.2 behind a SSL-Terminator

Varnish varnish-bugs at varnish-cache.org
Fri Oct 30 19:17:15 CET 2015


#1812: Varnish 3.0.2 behind a SSL-Terminator
-----------------------------------+--------------------
 Reporter:  nixmind                |       Owner:
     Type:  defect                 |      Status:  new
 Priority:  high                   |   Milestone:
Component:  build                  |     Version:  3.0.2
 Severity:  normal                 |  Resolution:
 Keywords:  redirect, http, https  |
-----------------------------------+--------------------

Comment (by nixmind):

 Update, I made a mistake in the proto check the code in the vcl_recv
 should look like this :

 {{{
 if (client.ip != "127.0.0.1" && req.http.host ~ "^(?i)mydomain.com" &&
 req.http.X-Forwarded-Proto !~ "(?i)https") {
             set req.http.x-redir = "https://" + req.http.host + req.url;
             #return(synth(850, "Moved permanently"));
             error 850 "Moved permanently";
     }
 }}}

 But it still don't work.

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1812#comment:1>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator



More information about the varnish-bugs mailing list