Branch: Tag:


2014-12-15 14:57:01 by Henrik Grubbström (Grubba) <>

Protocols: Improved support for reverse proxys. Fixes [bug 7385 (#7385)].

Use the actual port number rather than the port number from the Host-
header when determining which configuration a request belongs to. They
may differ when eg the request comes via a proxy on a different port.

5:   #include <config.h>   #include <module.h>   #include <module_constants.h> - constant cvs_version="$Id: prototypes.pike,v 1.228 2009/01/21 13:07:29 mast Exp $"; + constant cvs_version="$Id$";      #ifdef DAV_DEBUG   #define DAV_WERROR(X...) werror(X)
1090:    //! Originating @[RequestID] for recursive requests.    //! @member int "port"    //! Port number from the canonicalized host header. +  //! +  //! Note that this may differ from the actual port number +  //! (available in @[port_obj->port]) if eg the server is +  //! found behind a load balancing proxy. cf [bug 7385].    //! @member PrefLanguages "pref_languages"    //! Language preferences for the request.    //! @member mapping(string:array) "post_variables"