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

74 Commits

Author SHA1 Message Date
Eric Covener
dd2cf7bb56 trailing space doesn't work in a rewrite flag value
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585159 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 18:46:57 +00:00
Eric Covener
12563c4b82 bld break
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585158 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 18:45:05 +00:00
Eric Covener
911f522c2a add BNP flag to give control to the user on whether a space ' ' in
an escaped backrefernece is decoded to a + (default) or %20. Useful
if your backreference isn't going into the query string.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1585157 13f79535-47bb-0310-9956-ffa450edef68
2014-04-05 18:40:36 +00:00
Eric Covener
0bfd7243b3 allow users to workaround the over-agressive backreference
escaping by selecting the characters to escape. 



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1584417 13f79535-47bb-0310-9956-ffa450edef68
2014-04-03 21:53:14 +00:00
Eric Covener
be6ef336b2 avoid a tight busy loop with memory allocations when the [N] flag
isn't making progress.

If backported, probably increase the hard-coded limit to 32k from 10k.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1556206 13f79535-47bb-0310-9956-ffa450edef68
2014-01-07 13:07:51 +00:00
Rich Bowen
0aaaa75448 Typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1460930 13f79535-47bb-0310-9956-ffa450edef68
2013-03-25 23:28:19 +00:00
Rich Bowen
3fb6e09367 Actually, there's just the one example.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1458088 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 01:54:12 +00:00
Rich Bowen
510c0780cb "Will be" is weak. Replace with something that indicates that we're sure
of ourselves.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1458085 13f79535-47bb-0310-9956-ffa450edef68
2013-03-19 01:45:10 +00:00
Rich Bowen
7aa0725711 Reconcile contradictory statements.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1446006 13f79535-47bb-0310-9956-ffa450edef68
2013-02-14 01:03:10 +00:00
Daniel Gruno
054159027a Also note that RewriteCond directives have to match for the skip flag to work.
Reported at http://httpd.apache.org/docs/2.2/rewrite/flags.html#comment_322

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1394837 13f79535-47bb-0310-9956-ffa450edef68
2012-10-05 22:03:57 +00:00
Daniel Gruno
528e764aee Add a notion that, for a skip flag to be used, the rewrite rule has to first match (as per comment #211 on site)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1379311 13f79535-47bb-0310-9956-ffa450edef68
2012-08-31 06:36:24 +00:00
Daniel Gruno
beb4b3913c forward(?)-port some changes that were made in 2.4 instead of trunk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1363392 13f79535-47bb-0310-9956-ffa450edef68
2012-07-19 15:46:30 +00:00
Daniel Gruno
1518c0f73b Fix up the wording, so it leaves no doubt that status codes outside the 300-399 range are also perfectly fine.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1346288 13f79535-47bb-0310-9956-ffa450edef68
2012-06-05 08:35:05 +00:00
Daniel Gruno
4084b7d841 Fix whitespace issues and anchor patterns when needed in flags.xml
Fix double-escaped characters in advanced.xml

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1332585 13f79535-47bb-0310-9956-ffa450edef68
2012-05-01 09:21:13 +00:00
Daniel Gruno
8a5341c347 Use highlighter in rewrite/
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1330312 13f79535-47bb-0310-9956-ffa450edef68
2012-04-25 14:37:27 +00:00
Daniel Gruno
217e5128c6 Describe the syntax of the [S] flag.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1311806 13f79535-47bb-0310-9956-ffa450edef68
2012-04-10 16:02:00 +00:00
Daniel Gruno
697b31c49b Typo fix.
Can someone rebuild this? My build system seems to be broken.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1308779 13f79535-47bb-0310-9956-ffa450edef68
2012-04-03 09:34:46 +00:00
Rich Bowen
ce468d7f75 Rebuild
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1307778 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 12:01:45 +00:00
Rich Bowen
21b5309e41 Note that the <If> directive may be a better solution to this scenario.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1307775 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 11:57:42 +00:00
Daniel Gruno
50eb147f68 Clarify the [Skip] flag and add an if-then-else example
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1307733 13f79535-47bb-0310-9956-ffa450edef68
2012-03-31 08:10:35 +00:00
Rich Bowen
478a1c4ba6 Typo and link breakage patches for mod_rewrite docs. via Daniel Gruno
(rumble at cord dk)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1300917 13f79535-47bb-0310-9956-ffa450edef68
2012-03-15 11:22:11 +00:00
Igor Galić
d7ebe4152c Thanks goes to Daniel Gruno < rumble cord dk >
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1300556 13f79535-47bb-0310-9956-ffa450edef68
2012-03-14 14:23:13 +00:00
Joe Orton
ffce0a307e - add a security warning, and tweak the example, in light of CVE-2011-3368
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1179266 13f79535-47bb-0310-9956-ffa450edef68
2011-10-05 15:36:56 +00:00
Jim Jagielski
69c1a5c854 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@1174747 13f79535-47bb-0310-9956-ffa450edef68
2011-09-23 13:36:39 +00:00
Rich Bowen
fd407bc188 Updates one of the "advanced" recipes and rewrites description.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1169760 13f79535-47bb-0310-9956-ffa450edef68
2011-09-12 14:21:41 +00:00
Rich Bowen
840f787b31 Replaces rather weak example with a better one submitted by Marcus
Bointon (bug ID 51669)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1160345 13f79535-47bb-0310-9956-ffa450edef68
2011-08-22 17:47:41 +00:00
Rich Bowen
0035c438b8 The domain is not in fact optional. The cookie is not set if you don't
set the domain. (via Matthew Sporleder)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1092798 13f79535-47bb-0310-9956-ffa450edef68
2011-04-15 20:13:18 +00:00
Joe Orton
6da70f01d6 * docs/manual/rewrite/: Fix the real long form of DPI here also.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1089420 13f79535-47bb-0310-9956-ffa450edef68
2011-04-06 12:19:38 +00:00
Rich Bowen
2899287748 Markup typos. Rebuild HTML.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1088588 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 12:21:22 +00:00
Rich Bowen
487d91840a Adds a new section for the [END] flag. This duplicates text from the [L]
flag section, which should probably be summarized into a link.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1088582 13f79535-47bb-0310-9956-ffa450edef68
2011-04-04 12:14:43 +00:00
Rainer Jung
1f54cc5851 Fiy typo in docs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1078897 13f79535-47bb-0310-9956-ffa450edef68
2011-03-07 19:16:01 +00:00
Stefan Fritsch
7f6106542e Allow to unset environment variables using E=!VAR.
PR: 49512
Submitted by: Mark Drayton <mark markdrayton info>, Stefan Fritsch


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1053726 13f79535-47bb-0310-9956-ffa450edef68
2010-12-29 20:41:55 +00:00
Jeff Trawick
2ce0fcf630 follow up r1042758 and r1043011 with more fixes to use
proper example domains

(and show some respect in our mangled version of prep.ai.mit.edu
by using .edu instead of .com)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1043126 13f79535-47bb-0310-9956-ffa450edef68
2010-12-07 16:53:01 +00:00
Eric Covener
a81eb0d43d Add an END flag to RewriteRule that acts like L=LAST but also prevents
further rounds of rewrite processing due to per-directory substitutions.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1028778 13f79535-47bb-0310-9956-ffa450edef68
2010-10-29 14:43:49 +00:00
Eric Covener
204de4f15e Update a per-dir example that's meant to show looping and the L flag.
* add a RewriteBase
* REQUEST_URI doesn't have the RewriteBase stripped from it, so fix the test comparison.
* rewrite to absolute URI and use PT flag so the rule is somewhat applicable to per-vh context



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1025748 13f79535-47bb-0310-9956-ffa450edef68
2010-10-20 21:00:49 +00:00
Eric Covener
281d67d240 note a limitation on some kinds of flags in per-dir rewrite (since the current request
is not long for this world and these fields are not copied on the internal redirect)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@990129 13f79535-47bb-0310-9956-ffa450edef68
2010-08-27 12:38:23 +00:00
Igor Galić
f191b16bc1 [PT] is implied in per-dir context. (Also, FallbackResource is backported in 2.2.16)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@983728 13f79535-47bb-0310-9956-ffa450edef68
2010-08-09 16:50:00 +00:00
Rainer Jung
60e8f3a913 Allow to set environment variables using mod_rewrite without
explicitely giving a value.

Most modules only check presence of a variable, not the
value, so it makes sense to make the VAL argument in
the mod_rewrite ENV flag optional.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@960233 13f79535-47bb-0310-9956-ffa450edef68
2010-07-03 16:21:58 +00:00
Rainer Jung
ebcb68896e Fix documented syntax for env var setting in mod_rewrite.
Main page is fine, only the flags guide was wrong.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@960223 13f79535-47bb-0310-9956-ffa450edef68
2010-07-03 14:27:43 +00:00
Jeff Trawick
1477c61e6f odd assortment of spelling fixes
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@947651 13f79535-47bb-0310-9956-ffa450edef68
2010-05-24 14:26:49 +00:00
Rich Bowen
8567252916 Minor tweak: Rename links to 'Using RewriteMap' rather than 'RewriteMap'.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@945974 13f79535-47bb-0310-9956-ffa450edef68
2010-05-19 00:43:45 +00:00
Rich Bowen
416a85f30d Add the rewritemap doc to the seealso navigation.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@945934 13f79535-47bb-0310-9956-ffa450edef68
2010-05-18 22:30:54 +00:00
Rich Bowen
585e0c73cc Replace 'Apache' with contextually correct phrasing.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@934398 13f79535-47bb-0310-9956-ffa450edef68
2010-04-15 13:23:38 +00:00
Eric Covener
bb3c771c85 elaborate on the T= limiation in per-directory rewrites for PR 36590
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@919977 13f79535-47bb-0310-9956-ffa450edef68
2010-03-07 12:34:17 +00:00
Rich Bowen
7b31471c47 Name this doc a little more clearly.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@895619 13f79535-47bb-0310-9956-ffa450edef68
2010-01-04 13:12:13 +00:00
Rich Bowen
eef9d6547f version/compat messages on flags that have been recently added.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@895223 13f79535-47bb-0310-9956-ffa450edef68
2010-01-02 16:30:59 +00:00
Rich Bowen
5da48520eb Removes duplication of the RewriteRule flags documentation. The module
doc contains a table of definitions. The rewrite flag doc contains
detailed explanations and examples.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@895060 13f79535-47bb-0310-9956-ffa450edef68
2010-01-01 20:02:30 +00:00
Rich Bowen
79dc8455cb Typo, and a few additional details.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@895052 13f79535-47bb-0310-9956-ffa450edef68
2010-01-01 18:53:24 +00:00
Rich Bowen
cebd6925e1 Makes each flag a top-level section in this doc, thereby giving it a
navigation link in the right navigation box. I think that makes this
page much more useful, particularly when it becomes the primary resource
for rewriterule flags and their use.
Also adds some detail on several of the flags.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894539 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 03:54:10 +00:00
Rich Bowen
88e8db918d A few minor tweaks to the flags doc. Getting ready to rearrange the
flags in the main module doc vs this file.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894533 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 02:41:17 +00:00