4029f384e87ac5d066944c01cc1d5273ab03f724 1661067 |
|
20-Feb-2015 |
rjung |
mod_proxy_ajp: Forward SSL_PROTOCOL. Forthcoming
versions of Tomcat know how to extract the information
and provide it as a request attribute.
Compatibility is not broken, because we forward it
as a named request attribute, not with a new byte
encoded name. |
a908093faf334cf01440a9155b0abe66bea28d97 1610207 |
|
13-Jul-2014 |
rjung |
Forward local IP address as a custom request attribute
like we already do for the remote port.
Both were forgotten in the original AJP 13 spec
but are needed by the Servlet spec. Until now,
Tomcat simply returns for getLocalAddr() the same as
for getLocalName().
The next round of Tomcat releases will look for the
optional new request attribute.
See also Tomcat BZ 56661. |
2b26cd76f1914b2f621832c327839a1542a1fc26 1435178 |
|
18-Jan-2013 |
rjung |
mod_proxy_ajp: Support unknown HTTP methods.
BZ 54416
Forward unknown methods as request attributes
using method id SC_M_JK_STORED=0xFF and
request attribute id SC_A_STORED_METHOD=13.
Code ported from mod_jk (which got it from mod_jk2).
Supported by Tomcat at least since TC 4.1.
Doesn't seem to be supported by Jetty though. |
f6d39fd36344c7d6622be6ab6b98185a69e7d7eb 1328339 |
|
20-Apr-2012 |
sf |
fix some comments |
bb57ae727420d91974aef38a9db40c2293c90604 1300766 |
|
14-Mar-2012 |
sf |
Fix some typos |
a221184be5b40f8349982d94cda02b98068ce0d8 1214003 |
|
14-Dec-2011 |
minfrin |
Further clarify the naming of the entity that originates the request by
calling that entity a useragent instead of a client. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
8269892c0023355f51a3f67be442662aefdc6f92 1206291 |
|
25-Nov-2011 |
minfrin |
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. |
49fd87ed00b95bdd7a4cfc874e5c5fe4a04faf5a 1204968 |
|
22-Nov-2011 |
minfrin |
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). |
be69d3c436d67a0475e498389b0e81c57d4a0bd8 1204556 |
|
21-Nov-2011 |
jim |
check return status |
e6061cf1962bb4bcce89c2bdce375398d614be6a 1203878 |
|
18-Nov-2011 |
sf |
More ap_log_rerror() usage and axe some more AJP: prefixes |
3e13c3c3e6517a04c8c20ffb8e62aadb3b13f8df 1152452 |
|
30-Jul-2011 |
rjung |
Improve logging for mod_proxy_ajp. |
61a0ad13865dcc7f284c4279af7e15c9bbc050e2 1152450 |
|
30-Jul-2011 |
rjung |
Make AJP trace messages a bit less cryptic. |
dd2d34f14a343f4d6ffd8c620384309a733f7301 1152448 |
|
30-Jul-2011 |
rjung |
Move some debug log statements to trace level
and improve message format consistency. |
b8c9229249804470a885a1a43f7f2dad15fb06a3 1152379 |
|
29-Jul-2011 |
rjung |
mod_proxy_ajp: Respect "reuse" flag in END_REPONSE
packets. |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
51d55be8bbc6652c13bc80d920f4331f7152dcee 761329 |
|
02-Apr-2009 |
rjung |
The remote port information was forgotten from the builtin
data of the AJP 13 protocol. Since the servlet spec allows
to retrieve it via getRemotePort(), we provide the port to
the Tomcat connector as an additional request attribute.
Modern/future Tomcat versions know how to retrieve
the remote port from the attribute AJP_REMOTE_PORT.
See:
https://issues.apache.org/bugzilla/show_bug.cgi?id=41263
http://svn.eu.apache.org/viewvc?view=rev&revision=756926
http://svn.eu.apache.org/viewvc?view=rev&revision=757223 |
8995a84c9536513eeaaafadf7b64710e3d952fd8 707665 |
|
24-Oct-2008 |
rpluem |
* save_table needs to be declared first before it can be used. |
e54c4b7668cdcf47da3640ef586a6e48d41f86eb 707649 |
|
24-Oct-2008 |
jim |
AJP was dropping pre-existing cookies. Use same logic
as HTTP to tuck them away |
01d82bc3ace026e822ea51e680977c6d3e6f7629 574024 |
|
09-Sep-2007 |
jim |
Make AJP HEAD aware |
9def752106693ebde1ebfcd792f6a95aaea5db20 571232 |
|
30-Aug-2007 |
martin |
Here too, the limited comparison ignored the trailing NIL character |
06db0b751a4aa2c0aed3faf699dd1844dbb864df 571219 |
|
30-Aug-2007 |
martin |
Convert just the message text to EBCDIC, and not the (already EBCDIC) status code |
6121ba973fff0ef0b2d9ff6ef2a50188ab2dce34 467014 |
|
23-Oct-2006 |
jfclere |
At support for ProxyIOBufferSize in AJP. |
297583203265d8d67134457770e5820e5bfa195f 452536 |
|
03-Oct-2006 |
mturk |
Revert 451953 and 451951. Log the real r->method that is
unsupported by the AJP protocol. |
d1028832250e0162d01ff652bc75f14123042a81 451953 |
|
02-Oct-2006 |
mturk |
Ups. Fix typo. We are logging int, not string. |
cd678adc47686221532c42ecbeda8a11c62187db 451951 |
|
02-Oct-2006 |
mturk |
If the r->method_number is unknown the r->method
is unknown or corrupted as well. Log the method number
that was not recognized. |
63c22202f701e8f7dcb8a5429d0bea3a92b51552 427059 |
|
31-Jul-2006 |
mturk |
Fix compile time warning. AJP protocol method is byte. |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
4b0079bbadbc65d248523ccda763ace0a50195b3 409709 |
|
26-May-2006 |
trawick |
small cleanup of EBCDIC support in mod_proxy_ajp |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
a2fbbad70d5bd16f2d00a7d8fe6a197d7c9cdef9 383339 |
|
05-Mar-2006 |
rpluem |
* Crosscheck the length of the body chunk with the length of the ajp message
to prevent readings beyond the buffer boundaries which possibly could reveal
sensitive memory contents to the client. |
a1a615ca49b162d71d88089210395c9a9cfeb539 371013 |
|
21-Jan-2006 |
rpluem |
* Fix PR38340 by actual getting the word and thus advancing the message buffer
pointer to the next data.
Submitted by: Aleksey Pesternikov <apesternikov yahoo.com>
Reviewed by: Ruediger Pluem |
59c19a964c9643228c2da5589b96071b1e8ba285 358769 |
|
23-Dec-2005 |
mturk |
Fix Cookie2 header problems that originates back
from mod_jk. Cookie2 was always sent as Cookie. |
a7370fc81227cbbd3fa9d8ac042f83ac605eada1 357699 |
|
19-Dec-2005 |
martin |
In Apache-2.x, the function is called apr_pstrdup().
The 'tmp' variable is not really necessary. |
206d1f1bf2ccc70fc66286bb0c725942661e6e9b 357044 |
|
15-Dec-2005 |
jfclere |
Sorry, previous commit was not ok. |
1c992f847c66d1b7ff8f8bcf441a7939265bc549 357022 |
|
15-Dec-2005 |
jfclere |
The string comming from TC is in ASCII and the string returned by apr_psprintf isn't. |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
347c9301068524042be654db3b2b055a9ec20633 327185 |
|
21-Oct-2005 |
rpluem |
* Fix PR37100 (SEGV in mod_proxy_ajp), by sending the data up the filter
chain immediately instead of spooling it completely before passing it
to the filter chain. It contains a bandaid to handle intentional
flushes from Tomcat side. Further explanation in code and report.
ajp.h: Add ajp_msg_reuse prototype
mod_proxy_ajp.c: Adjust logic of ap_proxy_ajp_request
ajp_msg.c: Add ajp_msg_reuse
ajp_header.c: Adjusting logic of ajp_read_header |
bf0dec31a67271a4a67a6d3a3a9b3cdb41278390 307195 |
|
07-Oct-2005 |
rpluem |
* Fix PR36883 (mod_proxy_ajp and tomcat issues).
Submitted by: William Barker <william.barker wilshire.com>
Reviewed by: Ruediger Pluem |
5cd4f796d242bd32ff29a924cf0a608eea1e464f 232247 |
|
12-Aug-2005 |
niq |
Fix mess left by incompleteness of previous ProxyPassReverse fix |
79d97c2c5e2d3f8bb2a92cd21b3b4900d7bf04d6 160690 |
|
09-Apr-2005 |
mturk |
Use two optional functions from mod_ssl so that we
can receive both is_ssl and ssl_var for ajp protocol.
This is combined work based on patch from Brad Boyer and
Joe Orton's suggestion to use ssl_var_lookup. |
6a6dc5dca25dbcfa4c02f232834f3396b976c8bf 160668 |
|
09-Apr-2005 |
mturk |
Return 'real' error status codes instead APR_EGENERAL.
The return status code will be used to determine wether
the message is invalid or the remote host failed processing
the request. This is needed to mark the worker as in
error state in case it is member of load balancer. |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
5aeeae80488b85e764f8ca325ddeb8910d7f660c 151246 |
|
04-Feb-2005 |
striker |
Also translate Destination headers when ProxyPassReverse'd
* modules\proxy\mod_proxy_http.c
(process_proxy_header): reverse map Destination header.
NOTE: This is some darn nasty looking code...
* modules\proxy\ajp_header.c
(ajp_unmarshal_response): reverse map Destination header. |
1c26c1bd541d653cca1caffd87c0a2f6e9ed92c4 124912 |
|
11-Jan-2005 |
jim |
Match parameter types |
870181b1a2eb47ba42f178a90a9ee1763e95b325 124901 |
|
11-Jan-2005 |
striker |
Rewrite Cookies and other headers in mod_proxy_ajp as configured with
ProxyPassReverse and ProxyPassReverseCookiePath.
* modules/proxy/proxy_ajp.c
(ap_proxy_ajp_request): Update call to ajp_parse_header().
* modules/proxy/ajp.h
(ajp_msg_get_string): constify argument.
(ajp_parse_header): Add conf argument.
* modules/proxy/proxy_util.c
(ap_proxy_location_reverse_map): Promoted from mod_proxy_http.
(ap_proxy_cookie_reverse_map): Promoted from mod_proxy_http;
renamed from proxy_cookie_reverse_map.
* modules/proxy/ajp_msg.c
(ajp_msg_get_string): constify argument.
* modules/proxy/proxy_http.c
(ap_proxy_location_reverse_map, proxy_cookie_reverse_map: Removed.
(process_proxy_header): Update header mapping table to reference the now
public functions.
* modules/proxy/ajp_header.c
(ajp_unmarshal_response): And conf argument. Reverse map cookies and
other headers.
(ajp_parse_header): Update call to ajp_unmarshal_response().
* modules/proxy/mod_proxy.h
(ap_proxy_location_reverse_map, ap_proxy_cookie_reverse_map): Declare
functions that have been promoted to be public.
(ap_proxy_header_reverse_map_fn): Typedef for the signature of the above
two functions (currently used in mod_proxy_http). |
d24951a01e0fefe401f808002bbb240573408f47 124584 |
|
07-Jan-2005 |
striker |
Make the combination of mod_proxy_ajp and mod_rewrite work correctly.
* modules/proxy/proxy_ajp.c
(ap_proxy_ajp_request): Update call to ajp_send_header().
* modules/proxy/ajp.h
(ajp_send_header): Add a uri parameter.
* modules/proxy/ajp_header.c
(ajp_marshal_into_msgb): Add a uri parameter and use the
passed in uri instead of r->uri.
(ajp_send_header): Add a uri parameter. Update call to
ajp_marshal_into_msgb().
* modules/mappers/mod_rewrite.c
(is_absolute_uri): Add handling of 'ajp' and 'balancer' schemes. |
a8561b204b681363cf7702e48c369855a4714a3e 105185 |
|
17-Sep-2004 |
mturk |
Remove duplicate logging from alloc and send data_msg.
The logging is already done in the proxy_ajp. Also remove
unused function params. |
e250699e3fb8bfa02a9bcdc6b08e34123716ce62 105184 |
|
17-Sep-2004 |
mturk |
Remove logging inside ajp_send_data_msg. If send fails it is logged
inside proxy_ajp with the same message. |
6dae750641337132c82fee3abb7cd3f4fc5c23fb 105071 |
|
11-Sep-2004 |
jorton |
Fix format string warnings in proxy_ajp on 64-bit platforms:
* modules/proxy/ajp_header.c (ajp_send_data_msg): Use
APR_SIZE_T_FMT.
* modules/proxy/ajp_link.c (ajp_ilink_receive): Don't pass
\n to ap_log_error; do use APR_SIZE_T_FMT.
* modules/proxy/ajp_msg.c (ajp_msg_dump, ajp_msg_check_header,
ajp_msg_copy): Use APR_SIZE_T_FMT.
(ajp_log_overflow): New function.
(ajp_msg_{append,peek,get}_*): Use it.
* modules/proxy/proxy_ajp.c (ap_proxy_ajp_request): Use
APR_SIZE_T_FMT. |
f1553ab5b144409f25679ffcce2d51e7dc396160 104796 |
|
25-Aug-2004 |
mturk |
Added SSL custom indicators. They can be set using SetEnv directive,
so we don't need an extra one like the JkEnvVar is in the mod_jk. |
0ded315d2c676a80a8d7f838df73cc81df9e91c7 104788 |
|
24-Aug-2004 |
mturk |
Implement REQ_ATTRIBUTE using request rec environment table,
so we can use standard SetEnv directive for that.
The ajp specific attributes has to be prefixed using 'AJP_', and are passed
withouth that prefix to the backend. |
fe76b1832bc8280c956f9fb81d04ea8ab09c356f 104787 |
|
24-Aug-2004 |
mturk |
Use the session route from request rec notes. |
aadf50900dfe0e5da15c24f69650e3b3d72601b4 104711 |
|
18-Aug-2004 |
jfclere |
jakarta-tomcat-connectors AJP files.
The original location of the files in jakarta is:
jakarta-tomcat-connectors/ajp/ajplib/test
(That was not a good idea) |