Add support for reverse proxy HTTPS backend
This commit is contained in:
parent
186bbc3efb
commit
4415b9a1a6
@ -188,8 +188,8 @@ static int strip_return_port (char *host)
|
|||||||
/*
|
/*
|
||||||
* Pull the information out of the URL line.
|
* Pull the information out of the URL line.
|
||||||
* This expects urls with the initial '<proto>://'
|
* This expects urls with the initial '<proto>://'
|
||||||
* part stripped and hence can handle http urls,
|
* part stripped and hence can handle http urls, https
|
||||||
* (proxied) ftp:// urls and https-requests that
|
* urls, (proxied) ftp:// urls and https-requests that
|
||||||
* come in without the proto:// part via CONNECT.
|
* come in without the proto:// part via CONNECT.
|
||||||
*/
|
*/
|
||||||
static int extract_url (const char *url, int default_port,
|
static int extract_url (const char *url, int default_port,
|
||||||
@ -378,7 +378,7 @@ BAD_REQUEST_ERROR:
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (strncasecmp (url, "http://", 7) == 0
|
if (strncasecmp (url, "http://", 7) == 0 || strncasecmp (url, "https://", 8) == 0
|
||||||
|| (UPSTREAM_CONFIGURED () && strncasecmp (url, "ftp://", 6) == 0))
|
|| (UPSTREAM_CONFIGURED () && strncasecmp (url, "ftp://", 6) == 0))
|
||||||
{
|
{
|
||||||
char *skipped_type = strstr (url, "//") + 2;
|
char *skipped_type = strstr (url, "//") + 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user