1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-13 21:42:17 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
Mike Rumph
af0cfb57b7 Prevent an external proxy from presenting an internal proxy
in mod_remoteip.c. PR 55962.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1588330 13f79535-47bb-0310-9956-ffa450edef68
2014-04-17 18:14:49 +00:00
Mike Rumph
18dedf6db5 Use the correct IP addresses to populate the proxy_ips field
in mod_remoteip.c.  PR 55972.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1564475 13f79535-47bb-0310-9956-ffa450edef68
2014-02-04 20:38:01 +00:00
Mike Rumph
1ef8c3824c Correct the trusted proxy match test in mod_remoteip. PR 54651.\n\nSubmitted 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
2014-02-03 21:01:17 +00:00
Christophe Jaillet
af7096d97d s/equivalant/equivalent/ in comments
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550828 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 19:56:41 +00:00
Christophe Jaillet
7c7861d8d1 Remove redundant check
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550651 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 06:04:02 +00:00
Christophe Jaillet
b867906b6b s/ip/IP/ in comments
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1550650 13f79535-47bb-0310-9956-ffa450edef68
2013-12-13 06:01:28 +00:00
Christophe Jaillet
23b15cc92a Close file in error path.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1491234 13f79535-47bb-0310-9956-ffa450edef68
2013-06-09 16:00:18 +00:00
Stefan Fritsch
e00688ffd9 Use %pm available since apr 1.3 instead of an extra call to apr_strerror
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463056 13f79535-47bb-0310-9956-ffa450edef68
2013-03-31 21:29:28 +00:00
Jim Jagielski
41990042dd remove warning:
mod_remoteip.c:404:38: warning: data argument not used by format string [-Wformat-extra-args]
It's a hack, but maintain the orig hack ;)

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1407459 13f79535-47bb-0310-9956-ffa450edef68
2012-11-09 14:04:19 +00:00
Stefan Fritsch
3d98368058 Downgrade log message about adjusted IP address to trace1
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1304855 13f79535-47bb-0310-9956-ffa450edef68
2012-03-24 16:47:17 +00:00
Graham Leggett
cb21a0dbcc Further clarify the naming of the entity that directly connects to us by
calling that entity a client instead of a peer.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1214015 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 01:10:52 +00:00
Graham Leggett
2af2fa44ad Further clarify the naming of the entity that originates the request by
calling that entity a useragent instead of a client.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1214003 13f79535-47bb-0310-9956-ffa450edef68
2011-12-14 00:31:51 +00:00
Stefan Fritsch
0ecd2fe5e5 Remove usage of APLOG_NOERRNO. It has been a no-op since at least 2.0.x
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1211663 13f79535-47bb-0310-9956-ffa450edef68
2011-12-07 21:59:16 +00:00
Stefan Fritsch
92e366007c Add lots of unique tags to error log messages
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1209766 13f79535-47bb-0310-9956-ffa450edef68
2011-12-02 23:02:04 +00:00
Graham Leggett
394e5594d6 Introduce a per connection "peer_ip" and a per request "client_ip" to
distinguish between the raw IP address of the connection and the effective
IP address of the request.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1206291 13f79535-47bb-0310-9956-ffa450edef68
2011-11-25 19:42:04 +00:00
Graham Leggett
4ee7eea4cf Introduce a per request version of the remote IP address, which can be
optionally modified by a module when the effective IP of the client
is not the same as the real IP of the client (such as a load balancer).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1204968 13f79535-47bb-0310-9956-ffa450edef68
2011-11-22 13:10:39 +00:00
Graham Leggett
5a19e40f95 Style fixes, no functional change.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1203875 13f79535-47bb-0310-9956-ffa450edef68
2011-11-18 22:00:35 +00:00
Stefan Fritsch
1596edb4a2 Fix configuration of internal proxies
PR: 49272
Submitted by: Jim Riggs <jim riggs me>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1185828 13f79535-47bb-0310-9956-ffa450edef68
2011-10-18 20:10:48 +00:00
Jim Jagielski
427c85bd23 Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:39:32 +00:00
Stefan Fritsch
00f70ddc9a more temp pool usage and remove some useless apr_pstrdup()s
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1026660 13f79535-47bb-0310-9956-ffa450edef68
2010-10-23 18:35:06 +00:00
Ruediger Pluem
80c94d081e * - temp_sa is already the correct pointer
- use temp_sa instead of temp_sa_buff which is not a pointer

Pointed by: Andrew Skalski <voltara gmail.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@990746 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 09:45:34 +00:00
Ruediger Pluem
f6299b1324 * temp_sa is already the correct pointer.
PR: 49838
Submitted by: Andrew Skalski <voltara gmail.com>
Reviewed by: rpluem


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@990745 13f79535-47bb-0310-9956-ffa450edef68
2010-08-30 09:41:38 +00:00
Stefan Fritsch
ebb62867fb Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@951895 13f79535-47bb-0310-9956-ffa450edef68
2010-06-06 16:59:50 +00:00
Jim Jagielski
12033b2b0f comment change, no functional change
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@771966 13f79535-47bb-0310-9956-ffa450edef68
2009-05-05 18:52:59 +00:00
Ruediger Pluem
300e91f1ab * Don't assign pointers to int's. This is a nightmare when changeing
between 32 and 64 bit and waiting for an accident to happen.
  Also: It produces compiler warnings (at least 64 bit) :-).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@769818 13f79535-47bb-0310-9956-ffa450edef68
2009-04-29 16:29:31 +00:00
William A. Rowe Jr
2bb8b243e0 Introduce mod_remoteip to trunk from httpd/sandbox/mod_remoteip
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@767786 13f79535-47bb-0310-9956-ffa450edef68
2009-04-23 04:19:36 +00:00