Luca Toscano
0191ebe90b
mod_rewrite.xml: add an example about override behavior
...
A user in PR 63051 was confused about the default behavior
of mod_rewrite (override) when merging two sections in the
directory context at the same nesting level. I was confused
as well, but after a quick look at the code I figured out that
RewriteOptions Inherit seems to solve the issue (naming is,
in this case, a bit counter intuitive). I hope that I added
a good clarification in the code, if not please amend it as
you think it's best!
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1853280 13f79535-47bb-0310-9956-ffa450edef68
2019-02-09 14:14:43 +00:00
Christophe Jaillet
f697364833
Fix revision of a compatibility note
...
(one should always save open documents before pushing anything...)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827608 13f79535-47bb-0310-9956-ffa450edef68
2018-03-23 22:10:21 +00:00
Christophe Jaillet
beaeec6b5a
Fix an xml error not spotted by build.sh
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827605 13f79535-47bb-0310-9956-ffa450edef68
2018-03-23 22:05:36 +00:00
Christophe Jaillet
3d74244e79
Add compatibility note for the 3rd argument of 'RewriteMap'
...
(backported in 2.4.x in 1811748)
Improve doc highlight
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1827603 13f79535-47bb-0310-9956-ffa450edef68
2018-03-23 22:01:08 +00:00
Eric Covener
4fa0f6c103
add RewriteOptions LongURLOptimization
...
Variable expansion in RewriteCond causes strings to be duplicated
out of r->pool. If the variables are long and many conditions
are evaluated, r->pool can get seriously bloated.
Clear the memory used for variable expansion for each set of conditons
once the set of conditions fails to match.
edit: revised in 1799261
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1798938 13f79535-47bb-0310-9956-ffa450edef68
2017-06-16 15:13:03 +00:00
Luca Toscano
232d9e3c8a
Correct some typos across the documentation.
...
This commit was made thanks to the tool and PR
created by Lajos Veres (vlajos) on github.
PR: https://github.com/apache/httpd/pull/6
Tool: https://github.com/vlajos/misspell_fixer
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1780210 13f79535-47bb-0310-9956-ffa450edef68
2017-01-25 15:19:30 +00:00
Luca Toscano
e1693accce
Update httpd release version for LegacyPrefixDocRoot
...
This is not ideal since the feature has not been backported yet,
but it a compromise to avoid confusion for users.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776708 13f79535-47bb-0310-9956-ffa450edef68
2016-12-31 09:11:06 +00:00
Eric Covener
1b461200cc
PR60009: RewriteRule local prefix checking update
...
*) mod_rewrite: When a substitution is a fully qualified URL, and the
scheme/host/port matches the current virtual host, stop interpreting the
path component as a local path just because the first component of the
path exists in the filesystem. Adds RewriteOption "LegacyPrefixDocRoot"
to revert to previous behavior. PR60009.
Submitted By: Hank Ibell <hwibell gmail.com>
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1776463 13f79535-47bb-0310-9956-ffa450edef68
2016-12-29 18:39:24 +00:00
Rich Bowen
b3e4b09556
Reverting. I misunderstood.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1760590 13f79535-47bb-0310-9956-ffa450edef68
2016-09-13 19:59:18 +00:00
Rich Bowen
912159aed8
This option, not this module
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1760589 13f79535-47bb-0310-9956-ffa450edef68
2016-09-13 19:57:08 +00:00
Eric Covener
9b40242966
add [flags] to syntax
...
per http://httpd.apache.org/docs/2.4/mod/mod_rewrite.html#comment_5728
split list of flags out of the massive CondPattern list.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757838 13f79535-47bb-0310-9956-ffa450edef68
2016-08-26 12:59:20 +00:00
Eric Covener
8d528f9af0
more PR60024 feedback re: consistent terminology.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757289 13f79535-47bb-0310-9956-ffa450edef68
2016-08-23 00:15:44 +00:00
Eric Covener
6386d1d407
more fixes for per-dir explanation
...
change style of per-dir note for readability
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757027 13f79535-47bb-0310-9956-ffa450edef68
2016-08-20 19:24:56 +00:00
Eric Covener
c892110050
doc is already a wall of text w/o regex hints.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757026 13f79535-47bb-0310-9956-ffa450edef68
2016-08-20 19:09:27 +00:00
Eric Covener
783b1eb4c0
bld break
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757024 13f79535-47bb-0310-9956-ffa450edef68
2016-08-20 19:06:25 +00:00
Eric Covener
30e8530301
more per-dir cleanup, remove redundant text.
...
PR60024
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757023 13f79535-47bb-0310-9956-ffa450edef68
2016-08-20 19:04:40 +00:00
Eric Covener
42ef3c4669
take a pass through "per-dir" for PR60024
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757020 13f79535-47bb-0310-9956-ffa450edef68
2016-08-20 18:39:33 +00:00
Eric Covener
888138cabf
roll back last two commits per PR60024.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1757019 13f79535-47bb-0310-9956-ffa450edef68
2016-08-20 18:28:27 +00:00
Rich Bowen
d6059add64
Grammar tweaks, as per BZ59999
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1756567 13f79535-47bb-0310-9956-ffa450edef68
2016-08-16 23:41:54 +00:00
Rich Bowen
5a0b71e7a9
Clarify phrasing, as per bz53152
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1755361 13f79535-47bb-0310-9956-ffa450edef68
2016-08-05 16:19:01 +00:00
Eric Covener
b83cd2d697
add availability to rewriteoption too
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1744580 13f79535-47bb-0310-9956-ffa450edef68
2016-05-19 14:03:11 +00:00
Eric Covener
50cae64e8c
using context info for rewritebase was not until 2.4.16
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1744578 13f79535-47bb-0310-9956-ffa450edef68
2016-05-19 14:01:14 +00:00
Christophe Jaillet
693a3c7bff
Remove useless <br \> in highlight blocks.
...
(r1741841 in 2.4.x + small tweak for logs.xml because quoting is different. This will be fixed later on)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1741842 13f79535-47bb-0310-9956-ffa450edef68
2016-05-01 06:47:18 +00:00
Christophe Jaillet
42941c931d
Typo
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1737774 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 05:47:53 +00:00
Christophe Jaillet
300a63f703
Add some missing hyperlinks to the corresponding directives.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1737769 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 05:18:18 +00:00
Christophe Jaillet
d6691c6356
Fix the -H|-h flag as spotted by Pete in the online doc.
...
Add the missing -ne in RewriteCond
Add some missing hyperlinks to the corresponding directives.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1737767 13f79535-47bb-0310-9956-ffa450edef68
2016-04-05 05:09:25 +00:00
Eric Covener
0daa39b282
backported
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1734260 13f79535-47bb-0310-9956-ffa450edef68
2016-03-09 15:14:14 +00:00
Eric Covener
9abfad5705
mod_rewrite: Add QSL|qslast flag to allow rewrites to files with
...
literal question marks in their names.
PR 58777.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1734125 13f79535-47bb-0310-9956-ffa450edef68
2016-03-08 19:18:15 +00:00
Jim Jagielski
b643641681
correct closing tag
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728314 13f79535-47bb-0310-9956-ffa450edef68
2016-02-03 13:54:26 +00:00
Rich Bowen
83580c93c4
Resolves comment about how regex matches, at
...
http://httpd.apache.org/docs/current/mod/mod_rewrite.html#comments_thread
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728083 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 11:11:23 +00:00
Rich Bowen
09c6793500
Fix weird indentation
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728079 13f79535-47bb-0310-9956-ffa450edef68
2016-02-02 10:53:15 +00:00
Rich Bowen
1408ea2cd8
This is a definition list, so format it as one.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1727974 13f79535-47bb-0310-9956-ffa450edef68
2016-02-01 17:10:30 +00:00
Rainer Jung
814c6580e3
Add a docs remark about "SSLOptions StdEnvVars"
...
being not necessary for mod_rewrite
"%{SSL:VARIABLE}" feature and for the mod_ssl
extensions to mod_log_config (%{VARIABLE}x).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1706989 13f79535-47bb-0310-9956-ffa450edef68
2015-10-06 11:10:59 +00:00
Yann Ylavic
d9a3b78926
s/\<\(\w\+\)\>\s\+\<\1\>/\1/g
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1690137 13f79535-47bb-0310-9956-ffa450edef68
2015-07-09 18:07:50 +00:00
Ken Coar
430aadce59
* Remove trailing whitespace from a bunch of *.xml files
...
* Quoted arguments to Rewrite{Base,Cond,Map,Rule}.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673945 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 20:04:05 +00:00
Ken Coar
198976aa9d
Quote ScriptAlias and DocumentRoot arguments.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673917 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 18:17:34 +00:00
Ken Coar
b75f3c1fdf
Quote {Alias,Redirect,ScriptAlias}{,Match} arguments.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673908 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 18:04:39 +00:00
Ken Coar
57ef10245b
Enclose parameters in quotation marks for <{Files,Directory,Location}{,Match}>
...
containers.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673892 13f79535-47bb-0310-9956-ffa450edef68
2015-04-15 17:46:53 +00:00
Rich Bowen
9176c08239
Clarifies (I hope) what RewriteRule patterns are matched against. See
...
bz53153 for context.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1673528 13f79535-47bb-0310-9956-ffa450edef68
2015-04-14 19:19:01 +00:00
Eric Covener
b77002278d
close tag
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1668875 13f79535-47bb-0310-9956-ffa450edef68
2015-03-24 13:06:12 +00:00
Eric Covener
21565e32d2
trunkify
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1668871 13f79535-47bb-0310-9956-ffa450edef68
2015-03-24 13:04:07 +00:00
Jan Kaluža
7d8a22cfb4
Better documentation for RewriteMap MapTypeOptions (r1664565)
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1664575 13f79535-47bb-0310-9956-ffa450edef68
2015-03-06 09:53:40 +00:00
Eric Covener
09aa563de3
elaborate on per-directory limitations
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1643034 13f79535-47bb-0310-9956-ffa450edef68
2014-12-03 01:29:49 +00:00
Eric Covener
838b88e3d0
Remove some instances where a RewriteBase must be specified
...
Previously, any time you used a relative substitution in
per-directory/htaccess context, you needed to specify
a RewriteBase. But in case where the context document root
and context prefix are known via e.g. mod_userdir
or mod_alias, and the substitution is under the context
document root, we can determine the replacement automatically.
This makes htaccess files or config snippets a bit more
portable.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1642484 13f79535-47bb-0310-9956-ffa450edef68
2014-11-29 23:16:56 +00:00
Eric Covener
2c7046ccf7
simplify/clarify that negation operates on an entire condition and not
...
on the regex or the special test conditions. Comment #1291 .
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1601532 13f79535-47bb-0310-9956-ffa450edef68
2014-06-10 00:02:02 +00:00
Christophe Jaillet
8a9812fc67
Fix typo spotted on online doc by Markie.
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1596347 13f79535-47bb-0310-9956-ffa450edef68
2014-05-20 18:18:09 +00:00
Christophe Jaillet
16bd7d09a0
Based on report from Ken Zalewski, on online doc.
...
Add missing Server-Variables useable in RewriteCond directive.
Introduced in r1132494
CONTEXT_PREFIX
CONTEXT_DOCUMENT_ROOT
Introduced in r737973
IPV6
Missing for ages!
SCRIPT_GROUP
SCRIPT_USER
I have added where I found it logical, feel free to adjust.
I have also reordered this table to ease reading.
Finally, I have beautified some tables at the end.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1594094 13f79535-47bb-0310-9956-ffa450edef68
2014-05-12 21:01:36 +00:00
Christophe Jaillet
6154377640
Correct typo as spoted in a comment in online doc
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1591096 13f79535-47bb-0310-9956-ffa450edef68
2014-04-29 20:38:49 +00:00
Christophe Jaillet
f1ea9af2c6
Add <compatibility> notes for changes made in version 2.4.8 + synch formating with 2.4.x
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1587032 13f79535-47bb-0310-9956-ffa450edef68
2014-04-13 16:36:28 +00:00
Christophe Jaillet
ae29713674
Synch trunk with more detailed description in 2.4.4
...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1586452 13f79535-47bb-0310-9956-ffa450edef68
2014-04-10 19:49:37 +00:00