[Varnish] #1480: Porting guide for 4.0.0 is incomplete

Varnish varnish-bugs at varnish-cache.org
Sun Apr 20 00:03:05 CEST 2014


#1480: Porting guide for 4.0.0 is incomplete
---------------------------+--------------------
 Reporter:  falconindy     |       Owner:  scoof
     Type:  documentation  |      Status:  new
 Priority:  normal         |   Milestone:
Component:  website        |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+--------------------

Comment (by patrice):

 for the porting guide :
  * server.port is now std.port(server.ip)
  * req.backend using a director is now : req.backend_hint =
 mydirector.backend()

 {{{
 -    if (server.port == 8020) {
 -        set req.backend = mydirector;
 +    if (std.port(server.ip) == 8020) {
 +        set req.backend_hint = mydirector.backend();
 }}}

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




More information about the varnish-bugs mailing list