Commit 88ebfaa
committed
Merge r1838684, r1920570, r1920571, r1920572 from trunk:
When a rewrite to proxy is configured in the server config, a check is made to make sure mod_proxy is active. But the same is not done if a rewrite to proxy is configured in an .htaccess file.
Basically this patch is the block of code from hook_uri2file that does the proxy check, copied to hook_fixup.
Patch provided by Michael Streeter [mstreeter1 gmail.com], slightly modified to use a new APLOGNO
PR 56264
mod_rewrite, mod_proxy: mod_proxy to cononicalize rewritten [P] URLs. PR 69235.
When mod_rewrite sets a "proxy:" URL with [P], it should be canonicalized by
mod_proxy still, notably to handle any "unix:" local socket part.
To avoid double encoding in perdir context, a follow up commit should remove the
ap_escape_uri() done in mod_rewrite since it's now on mod_proxy to canonicalize,
per PR 69260.
* Leave the proper escaping of the URL and the adding of r->args to the
proxy module which runs after us after r1920570.
Just take care to add r->args in case the proxy rule has the
[NE] flag set and tell the proxy module to not escape in this case.
* Mention the additional bug
Submitted by: jailletc36, ylavic, rpluem
Reviewed by: rpluem, ylavic, covener
Github: closes #484
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1921299 13f79535-47bb-0310-9956-ffa450edef681 parent 0531a7d commit 88ebfaa
4 files changed
+39
-45
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
5 | 12 | | |
6 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | 168 | | |
181 | 169 | | |
182 | 170 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4515 | 4515 | | |
4516 | 4516 | | |
4517 | 4517 | | |
4518 | | - | |
4519 | | - | |
4520 | | - | |
4521 | | - | |
4522 | | - | |
4523 | | - | |
4524 | | - | |
4525 | | - | |
4526 | | - | |
4527 | | - | |
4528 | | - | |
4529 | | - | |
4530 | | - | |
4531 | | - | |
4532 | 4518 | | |
4533 | 4519 | | |
4534 | 4520 | | |
| |||
5051 | 5037 | | |
5052 | 5038 | | |
5053 | 5039 | | |
5054 | | - | |
| 5040 | + | |
5055 | 5041 | | |
5056 | 5042 | | |
5057 | 5043 | | |
| |||
5342 | 5328 | | |
5343 | 5329 | | |
5344 | 5330 | | |
5345 | | - | |
5346 | | - | |
| 5331 | + | |
| 5332 | + | |
| 5333 | + | |
| 5334 | + | |
| 5335 | + | |
| 5336 | + | |
| 5337 | + | |
| 5338 | + | |
| 5339 | + | |
| 5340 | + | |
| 5341 | + | |
| 5342 | + | |
| 5343 | + | |
| 5344 | + | |
| 5345 | + | |
| 5346 | + | |
| 5347 | + | |
| 5348 | + | |
5347 | 5349 | | |
5348 | 5350 | | |
5349 | 5351 | | |
5350 | | - | |
5351 | | - | |
| 5352 | + | |
5352 | 5353 | | |
5353 | 5354 | | |
5354 | 5355 | | |
| |||
5648 | 5649 | | |
5649 | 5650 | | |
5650 | 5651 | | |
5651 | | - | |
5652 | | - | |
5653 | | - | |
5654 | | - | |
| 5652 | + | |
5655 | 5653 | | |
5656 | 5654 | | |
5657 | 5655 | | |
| |||
5663 | 5661 | | |
5664 | 5662 | | |
5665 | 5663 | | |
5666 | | - | |
5667 | | - | |
| 5664 | + | |
| 5665 | + | |
| 5666 | + | |
| 5667 | + | |
| 5668 | + | |
5668 | 5669 | | |
5669 | | - | |
5670 | 5670 | | |
5671 | 5671 | | |
5672 | 5672 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3347 | 3347 | | |
3348 | 3348 | | |
3349 | 3349 | | |
3350 | | - | |
3351 | | - | |
3352 | | - | |
3353 | | - | |
3354 | 3350 | | |
3355 | 3351 | | |
3356 | 3352 | | |
3357 | 3353 | | |
3358 | 3354 | | |
3359 | 3355 | | |
| 3356 | + | |
| 3357 | + | |
3360 | 3358 | | |
3361 | 3359 | | |
3362 | 3360 | | |
3363 | 3361 | | |
3364 | 3362 | | |
3365 | | - | |
| 3363 | + | |
| 3364 | + | |
3366 | 3365 | | |
3367 | 3366 | | |
3368 | 3367 | | |
3369 | | - | |
3370 | | - | |
| 3368 | + | |
| 3369 | + | |
3371 | 3370 | | |
3372 | 3371 | | |
3373 | 3372 | | |
| |||
0 commit comments