André Malo
6f1e0d8307
Hook mod_proxy's fixup before mod_rewrite's fixup, so that by
...
mod_rewrite proxied URLs will not be escaped accidentally by
mod_proxy's fixup.
PR: 16368
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98707 13f79535-47bb-0310-9956-ffa450edef68
2003-02-18 20:35:28 +00:00
André Malo
742af25096
finished that boring job:
...
update license to 2003.
Happy New Year! ;-))
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@98573 13f79535-47bb-0310-9956-ffa450edef68
2003-02-03 17:53:28 +00:00
Jim Jagielski
62f1105335
Haven't heard any vetoes regarding this, so might as well fold it
...
in. Not too happy about cluttering up the list of directives either.
But, at least, it allows 2.0 to proxy stupid IIS as much as 1.3.
Docs to come soon.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@97202 13f79535-47bb-0310-9956-ffa450edef68
2002-10-14 14:11:24 +00:00
Brian Pane
306c5d82d9
Check that r->filename is non-null before trying to use
...
it in proxy_map_location()
PR: 12340
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96715 13f79535-47bb-0310-9956-ffa450edef68
2002-09-08 17:56:18 +00:00
William A. Rowe Jr
2604f8bdbb
Changes for deprecated apr_is_fnmatch
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95976 13f79535-47bb-0310-9956-ffa450edef68
2002-07-08 17:43:34 +00:00
Ian Holsman
6deba78a9a
Renames Pending:
...
This clears the list of renames pending in apr-util.
Parts of this list was alreadu done, but the pending list hadn't been updated.
apr_hook_debug_current from apr_current_hooking_module
apr_hook_debug_show from apr_show_hook
apr_hook_global_pool from apr_global_hook_pool
apr_hook_sort_all from apr_sort_hooks
apr_uri_port_of_scheme from apr_uri_default_port_for_scheme
apr_uri_unparse from apr_uri_unparse_components
apr_uri_parse from apr_uri_parse_components
apr_uri_parse_hostinfo from apr_uri_parse_hostinfo_components
apr_uri_t from apr_uri_components
All APR_URI_* from all APU_URI_* symbols
All APR_UNP_* from all UNP_* symbols
PR:
Obtained from:
Submitted by: Thom May
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95966 13f79535-47bb-0310-9956-ffa450edef68
2002-07-06 20:04:38 +00:00
William A. Rowe Jr
f8511d81d8
No crutches, people!
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95854 13f79535-47bb-0310-9956-ffa450edef68
2002-06-23 06:06:25 +00:00
William A. Rowe Jr
7af68c0bf5
Solve the 80/20 by initializing and storing server_rec->timeout and
...
server_rec->keep_alive_timeout in apr_time_interval_t format (in apr
units, whatever they be), as both values exist to pass into APR, and
all APR timeouts are in apr_time_t.
Reviewed by: Cliff Woolley
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95623 13f79535-47bb-0310-9956-ffa450edef68
2002-06-12 23:59:31 +00:00
Justin Erenkrantz
ba424185f0
Switch mod_proxy to using the brigade/filter calls directly rather than
...
the *_client_block calls.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95394 13f79535-47bb-0310-9956-ffa450edef68
2002-05-30 07:33:59 +00:00
Jeff Trawick
50bac91072
stop using APLOG_NOERRNO in calls to ap_log_[pr]error()
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@95150 13f79535-47bb-0310-9956-ffa450edef68
2002-05-17 11:24:17 +00:00
Graham Leggett
7eec825b4a
Add an intelligent error message should no proxy submodules be
...
valid to handle a request.
PR: 8407
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94785 13f79535-47bb-0310-9956-ffa450edef68
2002-04-24 17:40:48 +00:00
Doug MacEachern
9fb5b384d7
PR:
...
Obtained from:
Submitted by: Daniel Lopez <daniel@covalent.net >
Reviewed by: dougm, rbb
add optional fixup hook to proxy
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94544 13f79535-47bb-0310-9956-ffa450edef68
2002-04-08 18:38:56 +00:00
Doug MacEachern
1138615486
fix ProxyPass when frontend is https and backend is http
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94515 13f79535-47bb-0310-9956-ffa450edef68
2002-04-07 03:37:35 +00:00
William A. Rowe Jr
9644d3cdba
Fix another linkage error for 2.0.34 and cvs head
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94350 13f79535-47bb-0310-9956-ffa450edef68
2002-04-01 02:39:31 +00:00
Doug MacEachern
b699ec0f91
import ssl_proxy_enable in the post config phase, otherwise LoadModule
...
order may leave us without the function.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94303 13f79535-47bb-0310-9956-ffa450edef68
2002-03-29 08:04:04 +00:00
Doug MacEachern
c3e2155dca
hook into mod_ssl for https support
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94300 13f79535-47bb-0310-9956-ffa450edef68
2002-03-29 07:29:11 +00:00
Graham Leggett
19c0213612
Change the header merging behaviour in proxy, as some headers
...
(like Set-Cookie) cannot be unmerged due to stray commas in
dates.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@94083 13f79535-47bb-0310-9956-ffa450edef68
2002-03-21 12:05:45 +00:00
Roy T. Fielding
845cbfd508
Update our copyright for this year.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93918 13f79535-47bb-0310-9956-ffa450edef68
2002-03-13 20:48:07 +00:00
Jeff Trawick
fa3297464f
provide missing MAX() macro so that proxy can compile again
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93812 13f79535-47bb-0310-9956-ffa450edef68
2002-03-09 14:04:11 +00:00
Graham Leggett
01b5958cf7
New directive ProxyIOBufferSize. Sets the size of the buffer used
...
when reading from a remote HTTP server in proxy.
Modify receive/send loop in proxy_http and proxy_ftp so that
should it be necessary, the remote server socket is closed before
transmitting the last buffer (set by ProxyIOBufferSize) to the
client. This prevents the backend server from being forced to hang
around while the last few bytes are transmitted to a slow client.
Fix the case where no error checking was performed on the final
brigade in the loop.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93811 13f79535-47bb-0310-9956-ffa450edef68
2002-03-09 07:15:33 +00:00
Jim Jagielski
a1de05995b
Add the ProxyRemoteMatch directive to the mod_proxy
...
code. Doccos to be done soon
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93597 13f79535-47bb-0310-9956-ffa450edef68
2002-02-27 15:49:01 +00:00
Bill Stoddard
8cb5dbee43
Out foul tabs. No function change.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93375 13f79535-47bb-0310-9956-ffa450edef68
2002-02-12 17:41:35 +00:00
Ian Holsman
bf6f47a76d
missed a '&'
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93147 13f79535-47bb-0310-9956-ffa450edef68
2002-02-01 04:07:48 +00:00
Ian Holsman
8cf569593b
add a ProxyTimeout directive
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93117 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 18:46:56 +00:00
Martin Kraemer
0a372f9393
Minor tipos
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93111 13f79535-47bb-0310-9956-ffa450edef68
2002-01-30 15:30:09 +00:00
Ian Holsman
c23a0b8732
new directive 'ProxyPreserveHost' which allows the incoming host line to
...
be sent to the proxied server.
Submitted by: g.russell@ieee.org (1.3 version)
Reviewed by: Ian Holsman/Graham Legget/Chuck Murcko
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93089 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 21:08:37 +00:00
Ian Holsman
25b86854e1
configuration change.
...
allow a '!' directive to stop proxying these requests
eg.
ProxyPass /services/images/ !
ProxyPass /services/ http://service-machine/services/
which will stop requests to /services/images/ from being proxied
Submitted by: Jukka Pihl <jukka.pihl@entirem.com >
Reviewed by: Ian Holsman, Graham Legget, Chuck Murcko
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@93086 13f79535-47bb-0310-9956-ffa450edef68
2002-01-29 19:00:45 +00:00
Jeff Trawick
cf5f58a851
Fix a problem in the parsing of the <Proxy foo> directive.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92882 13f79535-47bb-0310-9956-ffa450edef68
2002-01-17 02:22:22 +00:00
Ian Holsman
6084f225f4
r->headers_in is shared by original requests and components (make no sense
...
copy them for components), but each component has its own r->pool.
So once the first component set "Max-Forwards", it is in headers_in
but the value could get lost with the first component's r->pool.
Hence I sometimes see "Max-Forwards" has value like letter "l".
Change it to use apr_table_set() fixed the problem.
Submitted by: Jin Hong <jinh@cnet.com >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92253 13f79535-47bb-0310-9956-ffa450edef68
2001-11-29 21:09:31 +00:00
Ian Holsman
a052762e84
ProxyPass wasn't sending the right URL through to the backend server
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@92021 13f79535-47bb-0310-9956-ffa450edef68
2001-11-17 22:01:32 +00:00
William A. Rowe Jr
e289e87c82
And where, praytell, should mod_proxy.c find ap_send_http_options
...
and ap_send_http_trace?
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91561 13f79535-47bb-0310-9956-ffa450edef68
2001-10-19 05:01:13 +00:00
William A. Rowe Jr
4608aab1d6
As GStein points out... comment here would be helpful
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91544 13f79535-47bb-0310-9956-ffa450edef68
2001-10-18 13:12:32 +00:00
William A. Rowe Jr
af7425b447
Aye, it's bogus. Something very odd about short terniary results on
...
this C[++] compiler here, wants to promote to the conditition's type :-/
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91424 13f79535-47bb-0310-9956-ffa450edef68
2001-10-11 14:04:11 +00:00
Graham Leggett
3ce4f34fd4
Fix the "merge" behaviour of the ProxyErrorOverride directive.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91172 13f79535-47bb-0310-9956-ffa450edef68
2001-09-28 10:33:39 +00:00
Graham Leggett
0617f1c78f
Some style cleanups related to the ProxyErrorOverride function.
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91171 13f79535-47bb-0310-9956-ffa450edef68
2001-09-28 10:23:32 +00:00
Victor J. Orlikowski
12d05cb79e
Change ProxyHTTPOverrideReturnedErrors command to ProxyErrorOverride
...
Docs update to follow.
Submitted by: Ian Holsman <ianh@cnet.com >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91165 13f79535-47bb-0310-9956-ffa450edef68
2001-09-27 16:44:43 +00:00
Ian Holsman
ae877f9e70
change command name so that it starts with 'Proxy'
...
fix the command so that it returns 'OK' instead of 'HTTP_OK'
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91155 13f79535-47bb-0310-9956-ffa450edef68
2001-09-26 19:58:10 +00:00
Ian Holsman
65d5d7b65c
Added New Option 'HTTPProxyOverrideReturnedErrors' which lets the server override
...
the error pages returned from the proxied server and replace them with the standard
server error handling on the main server.
Reviewed by: Graham, Chuck
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@91092 13f79535-47bb-0310-9956-ffa450edef68
2001-09-20 05:34:50 +00:00
Graham Leggett
e8ea6d64da
Fix some warnings...
...
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90777 13f79535-47bb-0310-9956-ffa450edef68
2001-08-28 23:45:30 +00:00
William A. Rowe Jr
e544eec75b
Split proxy: space using <Proxy[Match] > directive blocks from
...
the <Directory[Match] > and <Files[Match] > blocks. Mod_proxy
now bypasses the directory and files testing phase (and skips
the http TRACE default handler on it's own, as well). Note that
<Location > blocks continue to be processed for proxy: requests.
Remaining questions include canonicalization and case folding
of proxied uri space, prior to the proxy_walk testing and the
second <Location > walk.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90678 13f79535-47bb-0310-9956-ffa450edef68
2001-08-26 04:39:35 +00:00
Ian Holsman
af3b2ee457
adjust to apr_uri_ rename
...
Submitted by: dougm@apache.org
Reviewed by: ianh@apache.org
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90402 13f79535-47bb-0310-9956-ffa450edef68
2001-08-20 16:49:29 +00:00
Victor J. Orlikowski
ac17ff1737
Fix an off-by-one error in an argument to apr_pstrcat.
...
Submitted by: barbee@veribox.net
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@90176 13f79535-47bb-0310-9956-ffa450edef68
2001-08-15 21:45:51 +00:00
Victor J. Orlikowski
de5ebc3740
Nobody screamed. ;)
...
This gets rid of ap_proxy_host2addr, and a few other useless functions,
and allows us to be threadsafe when doing DNS resolution.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89829 13f79535-47bb-0310-9956-ffa450edef68
2001-07-31 16:25:18 +00:00
Chuck Murcko
f93d782272
fix params for logging call
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89520 13f79535-47bb-0310-9956-ffa450edef68
2001-07-09 06:35:51 +00:00
Ian Holsman
f2f4dff204
Fixed up formatting (removed tabs)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89425 13f79535-47bb-0310-9956-ffa450edef68
2001-06-26 22:46:04 +00:00
Ian Holsman
acf7098338
ProxyPass & ProxyPass Reverse now can be specified in <Location> directives
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89424 13f79535-47bb-0310-9956-ffa450edef68
2001-06-26 22:32:49 +00:00
Victor J. Orlikowski
a040b3c7bf
Bletch. The Proxy Janitor botches the job again.
...
Thanks to Ian Holsman for the catch.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89210 13f79535-47bb-0310-9956-ffa450edef68
2001-05-23 03:39:44 +00:00
Victor J. Orlikowski
2a5472f674
Fixes to proxy, after util-uri move, plus fixes to the .mak file.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89204 13f79535-47bb-0310-9956-ffa450edef68
2001-05-22 19:37:13 +00:00
Graham Leggett
c83c2da6a6
Oops - the proxy host and port were left off when the proxy tries to
...
run the handler to connect to a proxy server.
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88867 13f79535-47bb-0310-9956-ffa450edef68
2001-04-15 18:16:22 +00:00
Graham Leggett
22ebd698df
Split each individual proxy protocol into separate modules.
...
PR:
Obtained from:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88866 13f79535-47bb-0310-9956-ffa450edef68
2001-04-15 17:15:29 +00:00