https://bz.apache.org/bugzilla/show_bug.cgi?id=64405
Bug ID: 64405
Summary: [mod_proxy_uwsgi] Define default port for uwsgi
scheme.
Product: Apache httpd-2
Version: 2.4.43
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: mod_proxy
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 37214
--> https://bz.apache.org/bugzilla/attachment.cgi?id=37214&action=edit
patch for define default uwsgi port
In following setting:
* apache: ProxyPass / uwsgi://127.0.0.1/
* uwsgi: -s 127.0.0.1:3031
I got a following error in error_log:
- - - - - - -
[proxy:error] [pid 35769:tid 34389522688] (49)Can't assign requested address:
AH00957: uwsgi: attempt to connect to 127.0.0.1:0 (127.0.0.1) failed
[:error] [pid 35769:tid 34389522688] [client XXX.XXX.XXX.XXX:64938] AH10101:
failed to make connection to backend: 127.0.0.1:0
- - - - - - -
Because pschemes[] array doesn't have a information of uwsgi's default port.
So ap_proxy_port_of_scheme() returns 0.
static proxy_schemes_t pschemes[] =
{
{"fcgi", 8000},
{"ajp", AJP13_DEF_PORT},
{"scgi", SCGI_DEF_PORT},
{"h2c", DEFAULT_HTTP_PORT},
{"h2", DEFAULT_HTTPS_PORT},
{"ws", DEFAULT_HTTP_PORT},
{"wss", DEFAULT_HTTPS_PORT},
{ NULL, 0xFFFF } /* unknown port */
};
To fix above issue, please add a definition like attached patch.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]