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

Varnish varnish-bugs at projects.linpro.no
Tue May 6 21:12:16 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:  closed 
 Priority:  normal    |    Milestone:         
Component:  varnishd  |      Version:  trunk  
 Severity:  normal    |   Resolution:  wontfix
 Keywords:            |  
----------------------+-----------------------------------------------------
Comment (by phk):

 Appearantly you misunderstood my answer, let me try again:

 If the request has a Host: header, we send that to the backend unmodified.
 (If it needs modified, do so in VCL).

 If the request has no Host: header (or it was removed by VCL) we add a
 Host: header before sending the request to the backend, using the hostname
 from the backend specification, as a string.

 In other words: If we are about to send a request to the backend and it
 has no Host: header, we add a Host: header using the exact string
 specified in VCL, whatever format it has.

 For code references see: cache_http.c line 662-664 and cache_backend.c
 line 126-136.

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


More information about the varnish-bugs mailing list