[PATCH] Add support for uwsgi host and port variables

Derrick Petzold contact at derrickpetzold.com
Sat Jan 7 03:44:35 UTC 2012


Hello,

I added support for setting the following variables:

uwsgi_host - The host and port of the uwsgi server that handled the request.
uwsgi_port - The port of the uwsgi server that handled the request.

They are modeled after the proxy_host and proxy_port variables. (I
shamelessly copied that code). The major change is that the uwsgi
module now has its own context structure whereas before it was using
ngx_http_status_t. Please let me know if you have any questions or
comments.

Regards,
  Derrick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: uwsgi_host_and_port_variables.diff
Type: text/x-patch
Size: 8738 bytes
Desc: not available
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20120106/f7956b4c/attachment.bin>


More information about the nginx-devel mailing list