summaryrefslogtreecommitdiffstats
path: root/modules/proxy/mod_proxy_uwsgi.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* mod_proxy: Check for space/ctrls in nocanon path/urls before forwarding.Yann Ylavic2023-03-311-2/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908827 13f79535-47bb-0310-9956-ffa450edef68
* * Whitespace fixes. No functional change.Ruediger Pluem2023-03-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908628 13f79535-47bb-0310-9956-ffa450edef68
* Do not double encode encoded slashesRuediger Pluem2023-03-131-2/+5
| | | | | | | | | | | | | | | | | | | | | In case that AllowEncodedSlashes is set to NoDecode do not double encode encoded slashes in the URL sent by the reverse proxy to the backend. * include/ap_mmn.h: Document the addition of ap_proxy_canonenc_ex to the API. * modules/proxy/mod_proxy.h: Declare ap_proxy_canonenc_ex and define flag values. * modules/proxy/proxy_util.c: Implement ap_proxy_canonenc_ex by modifying ap_proxy_canonenc accordingly and reimplement ap_proxy_canonenc to use ap_proxy_canonenc_ex with the appropriate flag. * modules/http2/mod_proxy_http2.c, modules/proxy/mod_proxy_*.c: Set the correct flag based on the AllowEncodedSlashes configuration and use ap_proxy_canonenc_ex instead of ap_proxy_canonenc. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1908341 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_uwsgi: Stricter backend HTTP response parsing/validationYann Ylavic2023-03-021-14/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907980 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_uwsgi: Honor "proxy-nocanon" and "proxy-noencode".Yann Ylavic2023-03-021-2/+8
| | | | | | | | Just like the other proxy modules. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1907976 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_uwsgi: Remove duplicate slashes at the beginning of PATH_INFO.Yann Ylavic2021-10-091-2/+10
| | | | | | | | | | | | To accommodate for configs like: ProxyPass /uwsgi-pp uwsgi://localhost:8001/ which before r1892805 did not produce a leading double-slash in PATH_INFO. Submitted by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894074 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy: Handle ap_proxy_buckets_lifetime_transform() errors.Yann Ylavic2021-09-241-28/+33
| | | | | | | | | | | | | | | * modules/proxy/mod_proxy.h,modules/proxy/proxy_util.c: Add ap_proxy_fill_error_brigade() to factorize proxy error handling on the client connection side. * modules/proxy/mod_proxy_{http,ajp,uwsgi}.c: Use ap_proxy_fill_error_brigade() where needed, including when an empty brigade is returned on the backend side or when calling ap_proxy_buckets_lifetime_transform fails. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1893595 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_uwsgi: Fix PATH_INFO setting for generic worker.Yann Ylavic2021-09-021-17/+5
| | | | | | | | | When the generic "proxy:reverse" worker is selected for an uwsgi scheme, the worker name is irrelevant so uwscgi_handler() should point to the PATH_INFO directly from the given URL. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1892805 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1880205, APLOGNO().Yann Ylavic2020-07-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880214 13f79535-47bb-0310-9956-ffa450edef68
* mod_proxy_uwsgi: Error out on HTTP header larger than 16KYann Ylavic2020-07-231-3/+10
| | | | | | | | | The uwsgi protocol does not let us serialize more than 16K of HTTP header, so fail early with 500 if it happens. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1880205 13f79535-47bb-0310-9956-ffa450edef68
* Avoid NULL pointer dereferences for empty environment variable valuesRuediger Pluem2020-07-151-3/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1879878 13f79535-47bb-0310-9956-ffa450edef68
* Add missing pool tags to help debugging.Yann Ylavic2020-04-161-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876599 13f79535-47bb-0310-9956-ffa450edef68
* PR63628: individual status codes for ProxyErrorOverride.Eric Covener2020-04-111-2/+2
| | | | | | | | | | | Support specifying the http status codes to be considered by ProxyErrorOverride Submitted By: Martin Drößler <mail martindroessler.de> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1876404 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1859371: extend to other ap_proxy_connection_create[_ex]() users.Yann Ylavic2019-05-171-6/+4
| | | | | | | | | | | This function now now handles SSL reuse as well as the "proxy-request-hostname" note (SNI), so let's also call it unconditionnaly in all proxy modules. On the mod_ssl side, since this note has the lifetime of the connection, don't reset/unset it during handshake (ssl_io_filter_handshake). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1859422 13f79535-47bb-0310-9956-ffa450edef68
* These need to be signed longs... cast as needed.Jim Jagielski2018-08-271-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1839303 13f79535-47bb-0310-9956-ffa450edef68
* Axe ap_rgetline_core(), not used anymore.Yann Ylavic2018-04-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1829790 13f79535-47bb-0310-9956-ffa450edef68
* APR-ize uint typesJim Jagielski2017-12-151-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818280 13f79535-47bb-0310-9956-ffa450edef68
* Use APR typeJim Jagielski2017-12-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818013 13f79535-47bb-0310-9956-ffa450edef68
* Add APLOGNO to error messagesChristophe Jaillet2017-12-011-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1816922 13f79535-47bb-0310-9956-ffa450edef68
* Some small optimization:Christophe Jaillet2017-12-011-4/+6
| | | | | | | | - use 'ap_cstr_casecmpn' instead of 'strncasecmp' - use 'apr_table_setn' when parameters are constant - avoid some memory allocation if the module can not handle a request git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1816919 13f79535-47bb-0310-9956-ffa450edef68
* More C90 stuff...Jim Jagielski2017-10-021-5/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810447 13f79535-47bb-0310-9956-ffa450edef68
* Final comment-format changesJim Jagielski2017-10-021-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810365 13f79535-47bb-0310-9956-ffa450edef68
* And standard format - no functional changeJim Jagielski2017-10-021-195/+212
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810363 13f79535-47bb-0310-9956-ffa450edef68
* C changes / C90/C89Jim Jagielski2017-10-021-18/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810362 13f79535-47bb-0310-9956-ffa450edef68
* Fold in ALv2 licensed UWSGI proxy (sub)module as acknowledged viaJim Jagielski2017-10-021-0/+520
https://github.com/unbit/uwsgi/issues/1636 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1810358 13f79535-47bb-0310-9956-ffa450edef68