summaryrefslogtreecommitdiffstats
path: root/modules/metadata (follow)
Commit message (Collapse)AuthorAgeFilesLines
* copy apr_sockaddr_is_wildcard to maintain 1.4.x support.Eric Covener2018-03-241-0/+35
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827654 13f79535-47bb-0310-9956-ffa450edef68
* mod_remoteip: make proxy-protocol work on slave connections, e.g. in HTTP/2Stefan Eissing2018-03-191-1/+6
| | | | | | | requests. See also https://github.com/roadrunner2/mod-proxy-protocol/issues/6 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827196 13f79535-47bb-0310-9956-ffa450edef68
* some small tweaks to get things building againGregg Lewis Smith2018-01-191-4/+4
| | | | | | | replace mod_socache_redis.dsp as original was corrupted git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821581 13f79535-47bb-0310-9956-ffa450edef68
* avoid ap_set_content_type when processing a _Request_Header set|edit|unset ↵Eric Covener2018-01-101-4/+7
| | | | | | | | | | Content-Type. identified by ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1820750 13f79535-47bb-0310-9956-ffa450edef68
* PR 61983: "Header unset Content-Type" doesn't workEric Covener2018-01-101-0/+3
| | | | | | | | | | Submitted By: Hank Ibell <hwibell gmail.com> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1820715 13f79535-47bb-0310-9956-ffa450edef68
* APR-ize uint typesJim Jagielski2017-12-151-14/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818279 13f79535-47bb-0310-9956-ffa450edef68
* Fix format pattern (%lu => %APR_SIZE_T_FMT).Rainer Jung2017-10-161-2/+3
| | | | | | | | | | | | | | Detected by maintainer mode compilation and GCC error: .../modules/metadata/mod_remoteip.c: In function 'remoteip_input_filter': .../include/http_log.h:117:33: error: format '%lu' expects argument of type 'long unsigned int', but argument 8 has type 'apr_size_t {aka unsigned int}' [-Werror=format=] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1812332 13f79535-47bb-0310-9956-ffa450edef68
* PROXY protocol proposal correctionsMike Rumph2017-09-011-7/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1806985 13f79535-47bb-0310-9956-ffa450edef68
* Fix remaning compilation warning when MIME_MAGIC_DEBUG is defined.Christophe Jaillet2017-08-191-12/+12
| | | | | | | | Style is not perfect, but at least, the warning is fixed. warning: format ‘%c’ expects argument of type ‘int’, but argument 10 has type ‘long unsigned int’ [-Wformat=] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805493 13f79535-47bb-0310-9956-ffa450edef68
* Fix some compilation warning when MIME_MAGIC_DEBUG is defined.Christophe Jaillet2017-08-191-4/+4
| | | | | | warning: format ‘%x’ expects argument of type ‘unsigned int’, but argument <n> has type ‘<something> *’ [-Wformat=] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1805491 13f79535-47bb-0310-9956-ffa450edef68
* Remove empty line.Christophe Jaillet2017-05-221-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1795834 13f79535-47bb-0310-9956-ffa450edef68
* When processing a 'SetEnv' directive, warn if the environment variable name ↵Christophe Jaillet2017-05-191-0/+11
| | | | | | includes a '='. It is likely a configuration error. PR 60249 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1795635 13f79535-47bb-0310-9956-ffa450edef68
* Fix directive name in Christophe Jaillet2017-04-061-2/+2
| | | | | | | | (s/RemoteIPProxyProtocolDisableNetworks/RemoteIPProxyProtocolExceptions/) Use cmd->cmd->name instead to be future proof. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790457 13f79535-47bb-0310-9956-ffa450edef68
* Rename RemoteIPProxyProtocolDisableHosts to RemoteIPProxyProtocolExceptionsDaniel Ruggeri2017-04-051-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1790169 13f79535-47bb-0310-9956-ffa450edef68
* Update PROXY handling by removing Optional processingDaniel Ruggeri2017-04-011-174/+98
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1789800 13f79535-47bb-0310-9956-ffa450edef68
* Finally include feedback from Ruediger Pluem. Add slave "backoff" verified ↵Daniel Ruggeri2017-03-251-3/+39
| | | | | | by Sander Hoentjen git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1788674 13f79535-47bb-0310-9956-ffa450edef68
* * We can have expressions that become true if a regex pattern in the expressionRuediger Pluem2017-03-091-1/+11
| | | | | | | | does NOT match. In this case val is NULL and we should just set the value for the environment variable like in the pattern case. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1786235 13f79535-47bb-0310-9956-ffa450edef68
* Change tactic for PROXY processing in Optional caseDaniel Ruggeri2017-02-041-54/+63
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781701 13f79535-47bb-0310-9956-ffa450edef68
* * modules/metadata/mod_remoteip.c (register_hooks,Joe Orton2017-01-311-4/+5
| | | | | | | | remoteip_hook_pre_connection): Reference the filter by handle rather than name (avoiding tree lookup by name on use). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781031 13f79535-47bb-0310-9956-ffa450edef68
* * modules/metadata/mod_remoteip.c: Fix GCC strict-aliasing warningJoe Orton2017-01-311-1/+8
| | | | | | | | by moving deference of header array via a different pointer type ("type-punning") out of line. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1781030 13f79535-47bb-0310-9956-ffa450edef68
* Set all read buckets aside in case we need to restore all during optional ↵Daniel Ruggeri2017-01-281-13/+18
| | | | | | header processing git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1780725 13f79535-47bb-0310-9956-ffa450edef68
* * Silence compiler warningRuediger Pluem2017-01-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1778268 13f79535-47bb-0310-9956-ffa450edef68
* Reinsert attribution to mod_remoteip.c for PROXY protocolDaniel Ruggeri2016-12-311-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776740 13f79535-47bb-0310-9956-ffa450edef68
* On the trunk:Stefan Eissing2016-12-311-1/+1
| | | | | | | | * mod_remoteip: added cast to fix clang compiler error git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776734 13f79535-47bb-0310-9956-ffa450edef68
* Move attribution for mod_remoteip RemoteIPProxyProtocol from file to CHANGESDaniel Ruggeri2016-12-311-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776674 13f79535-47bb-0310-9956-ffa450edef68
* Shorten RemoteIPProxyProtocolEnable to RemoteIPProxyProtocol and correct ↵Daniel Ruggeri2016-12-301-4/+4
| | | | | | references in docs git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776624 13f79535-47bb-0310-9956-ffa450edef68
* Merge new PROXY protocol code into mod_remoteipDaniel Ruggeri2016-12-301-2/+773
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776575 13f79535-47bb-0310-9956-ffa450edef68
* mod_remoteip: Set useragent port to zero PR59931Eric Covener2016-12-291-0/+3
| | | | | | | | | | | When overriding the useragent address from X-Forwarded-For, zero out what had been initialized as the connection-level port. Submitted By: Hank Ibell <hwibell gmail.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776458 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary apr_table_do() function castsJacob Champion2016-11-101-5/+6
| | | | | | | | | | | | | | | | Function casts can cause hard-to-debug corruption issues if a declaration is accidentally changed to be incompatible. Luckily, most of the function casts for apr_table_do() calls are unnecessary. Remove them, and adjust the signatures for helpers that weren't taking void* as the first argument. The remaining helper that requires a cast is http_filter.c's form_header_field(), which is probably where many of these casts were copy-pasted from. I have left it as-is: it has other direct callers besides apr_table_do(), and it's already documented with warnings not to change the function signature. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1769192 13f79535-47bb-0310-9956-ffa450edef68
* Fix spelling in comments and text files.Rainer Jung2016-08-113-3/+3
| | | | | | | | No functional change. PR 59990 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756038 13f79535-47bb-0310-9956-ffa450edef68
* Rename ap_casecmpstr[n]() to ap_cstr_casecmp[n](), update with APR doxygenWilliam A. Rowe Jr2016-06-092-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1747469 13f79535-47bb-0310-9956-ffa450edef68
* hostname: Test and log useragent_host per-request across various modules,William A. Rowe Jr2016-02-121-2/+1
| | | | | | | | | | | | | including the scoreboard, expression and rewrite engines, setenvif, authz_host, access_compat, custom logging, ssl and REMOTE_HOST variables. PR55348 [William Rowe] This is the complete change set which applies cleanly to 2.4.x as well, the server/scoreboard.c will follow, which does not apply due to drift. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1729930 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-232-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715876 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1715789: will re-commit without spurious functional changes.Yann Ylavic2015-11-232-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715869 13f79535-47bb-0310-9956-ffa450edef68
* Use new ap_casecmpstr[n]() functions where appropriate (not exhaustive).Yann Ylavic2015-11-232-5/+5
| | | | | | | [Reverted by r1715869] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715789 13f79535-47bb-0310-9956-ffa450edef68
* Remove some useless 'return' statements.Christophe Jaillet2015-11-211-1/+1
| | | | | | Add a blank line between functions. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715572 13f79535-47bb-0310-9956-ffa450edef68
* Remove some useless 'return' statements.Christophe Jaillet2015-11-211-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1715571 13f79535-47bb-0310-9956-ffa450edef68
* Fix some style issues on files that can easily be synch'ed with 2.4.xChristophe Jaillet2015-09-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1705983 13f79535-47bb-0310-9956-ffa450edef68
* Fix some spurious ident spotted by sparseChristophe Jaillet2015-08-311-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700317 13f79535-47bb-0310-9956-ffa450edef68
* s/\<\(\w\+\)\>\s\+\<\1\>/\1/gYann Ylavic2015-07-092-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1690137 13f79535-47bb-0310-9956-ffa450edef68
* mod_remoteip: Use r->useragent_addr as the root trusted address for verifying.Jan Kaluža2015-06-301-1/+1
| | | | | | | | | | | | | | | | | | | | This fixes issue resulting in setting of bad useragent_ip when internal redirection has been generated as response to the request (typically as result of "ErrorDocument 40x"). In this case, the original request has been handled by mod_remoteip and its useragent_ip has been changed properly, but when internal redirection to ErrorDocument has been generated later, the mod_remoteip's handler has been executed again with *the same* c->client_addr as in the original request. If c->client_addr IP is trusted, this results in bad useragent_ip being set. When using r->useragent_addr as the root trusted address instead of c->client_addr, the internal redirection uses the first non-trusted IP in this particular case, so it won't change the r->useragent_ip during the internal redirection to ErrorDocument. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1688399 13f79535-47bb-0310-9956-ffa450edef68
* Save a few bytes of memory. This can be done in temp_pool.Christophe Jaillet2014-05-231-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1597182 13f79535-47bb-0310-9956-ffa450edef68
* Prevent an external proxy from presenting an internal proxyMike Rumph2014-04-171-1/+20
| | | | | | | in mod_remoteip.c. PR 55962. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1588330 13f79535-47bb-0310-9956-ffa450edef68
* mod_expires: don't add Expires header to error responses (4xx/5xx),Yann Ylavic2014-04-041-0/+6
| | | | | | | be they generated or forwarded. PR 55669. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1584430 13f79535-47bb-0310-9956-ffa450edef68
* Use the correct IP addresses to populate the proxy_ips field Mike Rumph2014-02-041-2/+3
| | | | | | | in mod_remoteip.c. PR 55972. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564475 13f79535-47bb-0310-9956-ffa450edef68
* Correct the trusted proxy match test in mod_remoteip. PR 54651.\n\nSubmitted ↵Mike Rumph2014-02-031-2/+2
| | | | | | By: Yoshinori Ehara <yoshinori ehara gmail com>\nEndorsed By: Eugene L <eugenel amazon com>\nCommited By: mrumph git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564052 13f79535-47bb-0310-9956-ffa450edef68
* This is annoying to see in a casual "LogLevel debug foo:traceX ..."Eric Covener2013-12-181-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1552130 13f79535-47bb-0310-9956-ffa450edef68
* Ease logic around 'ap_getword_conf' and drop useless line of code.Christophe Jaillet2013-12-151-4/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1551009 13f79535-47bb-0310-9956-ffa450edef68
* s/equivalant/equivalent/ in commentsChristophe Jaillet2013-12-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550828 13f79535-47bb-0310-9956-ffa450edef68
* Remove redundant checkChristophe Jaillet2013-12-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550651 13f79535-47bb-0310-9956-ffa450edef68