/[Apache-SVN]
ViewVC logotype

Revision 1893519


Jump to revision: Previous Next
Author: ylavic
Date: Wed Sep 22 18:47:09 2021 UTC (2 years, 8 months ago)
Changed paths: 2
Log Message:
mod_proxy: Handle UDS URIs with empty hostname as if they had no hostname.

It was reported to me (privately) that r1893101 broke existing settings like:
  SetHandler "proxy:unix:///path/to/uds.sock|fcgi://localhost/"

RFC 3986 (section 3.2.2) says that:
   If the URI scheme defines a default for host, then that default
   applies when the host subcomponent is undefined or when the
   registered name is empty (zero length).  For example, the "file" URI
   scheme is defined so that no authority, an empty host, and
   "localhost" all mean the end-user's machine, whereas the "http"
   scheme considers a missing authority or empty host invalid.

Let's consider that the "unix" scheme is closer to the "file" scheme than
the "http" one, and accept "unix:///path/to/uds.sock" as a valid URI.



Changed paths

Path Details
Directoryhttpd/httpd/trunk/changes-entries/uds_empty_hostname.txt added
Directoryhttpd/httpd/trunk/modules/proxy/proxy_util.c modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26