Bug 250845

Summary: www/apache24: mod_proxy_uwsgi doesn't use default port of uwsgi:// scheme.
Product: Ports & Packages Reporter: Norikatsu Shigemura <nork>
Component: Individual Port(s)Assignee: freebsd-apache (Nobody) <apache>
Status: Open ---    
Severity: Affects Some People CC: brnrd
Priority: --- Flags: bugzilla: maintainer-feedback? (apache)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
a patch to modules/proxy/proxy_util.c none

Description Norikatsu Shigemura 2020-11-04 01:57:13 UTC
Created attachment 219340 [details]
a patch to modules/proxy/proxy_util.c

mod_proxy_uwsgi has a issue to use a default port of uwsgi:// scheme.
I reported to apache httpd maintainer(*), but not fix yet.

(*)SEE ALSO: https://bz.apache.org/bugzilla/show_bug.cgi?id=64405

This fix was simplify, add a uwsgi default port to pschemes[] array in proxy_util.c.
Formally, this fix should be define UWSGI_SCHEME and UWSGI_DEFAULT_PORT,
but already reported in apache httpd maintainer(*).
Comment 1 Bernard Spil freebsd_committer freebsd_triage 2020-11-15 14:44:15 UTC
Hi Nork,

Looks like there isn't something like a default port for uWSGI (at least looking at the uWSGI docs I don't see it). Guess this is why it's not defined in the code. The documentation clearly contains the port for all configurations. Perhaps makes sense to submit patch to add an admonition "NOTE: You must use a port number in your ProxyPass"  instead?

Cheers, Bernard.
Comment 2 Norikatsu Shigemura 2021-01-31 05:42:57 UTC
Hi Bernard,


> Looks like there isn't something like a default port for uWSGI (at least looking at the uWSGI docs I don't see it). Guess this is why it's not defined in the code.

Yes. But I don't know why.

> Guess this is why it's not defined in the code. The documentation clearly contains the port for all configurations. Perhaps makes sense to submit patch to add an admonition "NOTE: You must use a port number in your ProxyPass"  instead?

That's fine, but "NOTE: You must use a port number exclude 3031 in your ProxyPass".  In this time, apache24 reports a error like following setting:

ProxyPass / uwsgi://127.0.0.1/
ProxyPass / uwsgi://127.0.0.1:3031/

And also, unix domain "with port number" causes a error like following setting:

ProxyPass / unix:/tmp/.uwsgi.sock|uwsgi://127.0.0.1:3031/
ProxyPass / unix:/tmp/.uwsgi.sock|uwsgi://127.0.0.1:3032/