RE: mod_uwsgi with chunked request body causes 411

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the info.

I changed the proxy line to this:
ProxyPass /objsrv/1.0/ http://127.0.0.1:2001/

And added this:
SetEnv proxy-sendchunked 1

and my tests run fine. I guess I'll hack into the uwsgi module for apache. 

Thanks again for the help,

Steve

-----Original Message-----
From: Nick Kew [mailto:nick@xxxxxxxxxxxx] 
Sent: Thursday, September 05, 2013 9:06 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  mod_uwsgi with chunked request body causes 411


On 6 Sep 2013, at 04:48, Stephen Pierce wrote:

> http://www.gossamer-threads.com/lists/apache/users/183271
> "Well, I got Apache source and it is obvious that the problem is most 
> (all?) mod_* things do not ask Apache to dechunk request for them. 
> They prefer to make it an error. So, it is possible to write Apache 
> module to allow chunked requests."

mod_proxy gives you that option.

> My configuration is apache 2.2.15 (stock CentOS 6.0), proxying for uwsgi (my custom package 1.9.37), running my python wsgi application. My apache configuration:
>  
> ProxyPass /app/1.0 uwsgi://127.0.0.1:2101/

You appear to be looking for proxy-sendcl, as documented under mod_proxy_http.  Except, I guess "uwsgi" isn't HTTP and doesn't use that module.

You could perhaps use the mod_proxy_http code as a template to hack the uwsgi module to do what you need.

--
Nick Kew
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx






[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux