[Varnish] #230: Set bereq.host = backend.host if backend host is domain name (instead of ip address)

Varnish varnish-bugs at projects.linpro.no
Fri Apr 18 20:57:26 CEST 2008


#230: Set bereq.host = backend.host if backend host is domain name (instead of ip
address)
----------------------+-----------------------------------------------------
 Reporter:  runa      |       Owner:  phk  
     Type:  defect    |      Status:  new  
 Priority:  normal    |   Milestone:       
Component:  varnishd  |     Version:  trunk
 Severity:  normal    |    Keywords:       
----------------------+-----------------------------------------------------
 When a backend host is specified using a domain name (instead of an ip
 addr) varnish should automatically set the Host header of the Backend
 request to that hostname.

 Currently this is needed:

 {{{

 backend thumbs {
         .host = "thumbs.foo.com";
         .port = "80";
 }

 if (req.url ~ "^/thumbs/"){
        set req.backend = thumbs;
        set req.http.host = "thumbs.foo.com";#this should be done
 automatically
 }
 }}}

-- 
Ticket URL: <http://varnish.projects.linpro.no/ticket/230>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator


More information about the varnish-bugs mailing list