1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00
Commit Graph

101 Commits

Author SHA1 Message Date
Stefan Fritsch
7b74009049 Make ap_pregsub(), used by AliasMatch and friends, use the same syntax
for regex backreferences as mod_rewrite and mod_include: Remove the use
of '&' as an alias for '$0' and allow to escape any character with a
backslash.

Document the use of $0.

PR: 48351


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@904765 13f79535-47bb-0310-9956-ffa450edef68
2010-01-30 11:20:53 +00:00
Lucien Gentis
ceac8571d3 Updates and 2 little typos in manual/mod/mod_rewrite.xml.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@896921 13f79535-47bb-0310-9956-ffa450edef68
2010-01-07 16:40:21 +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
c4b0fa2f7d Adds a [QSD] flag to RewriteRule to discard unwanted query strings
without the old kludge of sticking a ? on the end of the target URI.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@894383 13f79535-47bb-0310-9956-ffa450edef68
2009-12-29 13:34:24 +00:00
André Malo
991dd648f9 revert r832627, because it uses invalid xml structure
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@889973 13f79535-47bb-0310-9956-ffa450edef68
2009-12-12 20:28:44 +00:00
Jeff Trawick
6565e2228b move a couple of special warnings for SysV sems and Posix sems out of the
performance tuning guide and into the common Mutex documentation; remove the
other (duplicate) information from that guide and instead point to the Mutex
directive

mpm_common: axe docs for old accept mutex directives

worker and prefork: axe links to old accept mutex directives, mention the use
of the accept mutex and how it can be configured

event: axe links to old mutex directives where were already N/A

mod_rewrite: axe old RewriteLock directive, mention use of the rewrite map
mutex for RewriteMap programs and how it can be configured

fix other miscellaneous LockFile or AcceptMutex references


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883878 13f79535-47bb-0310-9956-ffa450edef68
2009-11-24 21:08:37 +00:00
Eric Covener
514827929b continue clarification of RewriteBase, lots of users who install little
PHP apps with an Alias a) leave off RewriteBase then b) add the filesystem
path instead of the URL-path then c) spend hours trying to debug
the RewriteRules themselves.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@883030 13f79535-47bb-0310-9956-ffa450edef68
2009-11-22 01:38:59 +00:00
Eric Covener
5848a42169 add an early note about the Pattern in a rewriterule behaving
counterintuitively in per-directory context. (lots of mysterious no-op 
rulesets due to ^/ in htaccess)

Tweak QSA text.



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832914 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 23:48:52 +00:00
Noirin Plunkett
c423645206 Split RewriteCond into two sections, brought TestString section up to date.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832627 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 00:10:36 +00:00
Noirin Plunkett
6bda4890a2 Removing more cruft, rewriting what's left
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832239 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03 01:09:38 +00:00
Noirin Plunkett
fd8ad0059b Ripping out the stuff that isn't really module reference, and translating the
introduction to English


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832130 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 22:05:01 +00:00
Rich Bowen
183a6ef99f Full doc tree rebuild. This includes some diffs that rename
rewrite/rewrite_tech.* to rewrite/tech.*


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832071 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 19:34:38 +00:00
Rich Bowen
d2b36fc6aa As discussed on the docs mailing list several months back, we're
removing the 'rewrite_' from the various files in the rewrite/
directory, since it's redundant. This change moves rewrite_intro to
intro. Patches to follow will rename the other rewrite_ files.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@832009 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02 18:31:08 +00:00
Vincent Deffontaines
299688e2b1 Add a note about the DPI rewrite flag, available from 2.2.12 only.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@829520 13f79535-47bb-0310-9956-ffa450edef68
2009-10-25 10:03:25 +00:00
André Malo
80f5bdd29e fix validation errors
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@729539 13f79535-47bb-0310-9956-ffa450edef68
2008-12-26 21:45:59 +00:00
Eric Covener
d91d8df242 Various cleanups and per-directory behavior differences
Submitted By: Bob Ionescu
Reviewed By: covener



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728399 13f79535-47bb-0310-9956-ffa450edef68
2008-12-21 08:04:29 +00:00
Eric Covener
6b75806ed8 typo spotted by Vincent Bray
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728020 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 13:39:55 +00:00
Eric Covener
6710f37922 *) mod_rewrite: Introduce DiscardPathInfo|DPI flag to stop the troublesome
way that per-directory rewrites append the previous notion of PATH_INFO
    to each substitution before evaluating subsequent rules.
    PR38642 [Eric Covener]



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@728015 13f79535-47bb-0310-9956-ffa450edef68
2008-12-19 12:59:52 +00:00
Rich Bowen
c1a9ef2075 Slight clarification to the way rewrite works in per-directory context.
Suggested by Peter Kehl on the users mailing list.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@720955 13f79535-47bb-0310-9956-ffa450edef68
2008-11-26 19:22:17 +00:00
Eric Covener
8aec8fc2bf missing an "if"
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@707072 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 13:40:21 +00:00
Eric Covener
919c0c9166 leave a hint about some non-intuitive startup behavior for RewriteMap programs
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@707041 13f79535-47bb-0310-9956-ffa450edef68
2008-10-22 11:44:53 +00:00
Ruediger Pluem
cf66e3894d * Offer the possibility to create session cookies in the case a path is
given.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664333 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 12:50:04 +00:00
Ruediger Pluem
140715a336 * Allow HttpOnly, 1 and true to enable HttpOnly, allow secure, 1 and true
to enable secure.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@664330 13f79535-47bb-0310-9956-ffa450edef68
2008-06-07 12:29:27 +00:00
Ruediger Pluem
c506a9d1a7 * Make setting of HttpOnly flag more explicit.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@660566 13f79535-47bb-0310-9956-ffa450edef68
2008-05-27 15:49:30 +00:00
Takashi Sato
f32647d426 Style fix. Almost all are detabs.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@659902 13f79535-47bb-0310-9956-ffa450edef68
2008-05-25 03:28:34 +00:00
Vincent Bray
0ce9b7e4ae Minor grammar fix (s/not accessible/inaccessible/)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@647424 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 11:08:12 +00:00
Ruediger Pluem
93a75ba455 * Allow Cookie option to set secure and HttpOnly flags
PR: 44799
Submitted by: Christian Wenz <christian wenz.org>
Reviewed by: rpluem



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@647395 13f79535-47bb-0310-9956-ffa450edef68
2008-04-12 08:44:36 +00:00
Joshua Slive
e04102ffe6 Make the RewriteRule docs shorter (!) by referencing the regex docs in the
rewrite intro.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@636398 13f79535-47bb-0310-9956-ffa450edef68
2008-03-12 16:22:20 +00:00
Tony Stevenson
5710e61dbe As per PR 44135
Feeling brave mucking with the rewrite docs =) 

setenvif -> added link to rewrite.html#rewritecond
rewrite -> added a see also so the rewrite flags stood out a little more.  



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@619726 13f79535-47bb-0310-9956-ffa450edef68
2008-02-08 01:34:51 +00:00
Vincent Bray
c886efedbd 'segement' typo
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@604461 13f79535-47bb-0310-9956-ffa450edef68
2007-12-15 17:35:38 +00:00
Vincent Bray
10ecac4ec5 Repeated 'RewriteRule'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@599603 13f79535-47bb-0310-9956-ffa450edef68
2007-11-29 22:19:00 +00:00
André Malo
48e97db77a fix external references to perldoc
PR: 43856


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@594900 13f79535-47bb-0310-9956-ffa450edef68
2007-11-14 14:27:20 +00:00
Eric Covener
e2bd543fdc punctuation; sorry for the noise
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@577302 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 13:42:41 +00:00
Eric Covener
c10c30b87d document the mod_userdir-like tilde expansion sometimes performed by mod_rewrite
A tilde can sneak into a rule via a backreference and cause some surprising behavior



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@577254 13f79535-47bb-0310-9956-ffa450edef68
2007-09-19 11:39:51 +00:00
Vincent Bray
43ce7e3b2a Add a few '/' and remove an errant '>'.
Note that this changes a patch proposed for backport to 2.2 (PR34602 & r573831).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@576979 13f79535-47bb-0310-9956-ffa450edef68
2007-09-18 17:09:55 +00:00
Ruediger Pluem
ce9eaa96e8 * Add the novary flag to RewriteCond in order to prevent the appending
of HTTP headers used in a rewrite condition to the Vary header of
  the response.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@574684 13f79535-47bb-0310-9956-ffa450edef68
2007-09-11 20:15:54 +00:00
Nick Kew
c94d03e6c5 Add option to escape backreferences in RewriteRule.
PR 34602  and  PR 39746
Patch by Guenther Gsenger


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@573831 13f79535-47bb-0310-9956-ffa450edef68
2007-09-08 12:46:10 +00:00
Rich Bowen
ab43f623e4 Remove the Perl txt-to-dbm translation script, and replace it
with a reference to the httxt2dbm utility.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@567899 13f79535-47bb-0310-9956-ffa450edef68
2007-08-21 01:36:39 +00:00
Joshua Slive
38587e0019 Change the flag list to a <dl> instead of <ul>. Seems much more readable to me.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561918 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 19:04:21 +00:00
Joshua Slive
bb6b032ca1 Note the L doesn't necessarily mean no more rewriting.
PR: 40004


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561906 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 18:50:43 +00:00
Joshua Slive
75846d904c R flag to mod_rewrite can set any status code
PR: 25917


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561902 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 18:39:04 +00:00
Joshua Slive
fc5122253a Some updates to the RewriteRule docs, mostly focusing on clearly
describing what can be in the substitution string. Included is
a description of how mod_rewrite decides whether to treat the
substitution as a file-system or URL-path.

PR: 22529


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561840 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 15:21:31 +00:00
Joshua Slive
b21e576e40 A couple small fixes suggested by Vincent.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561797 13f79535-47bb-0310-9956-ffa450edef68
2007-08-01 13:54:06 +00:00
Joshua Slive
8e66ae080f Document that PT implies L.
PR: 40046


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561463 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 19:46:05 +00:00
Joshua Slive
719b5e2394 Explicitly mention how to do rewriting in a vhost.
PR: 36506


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@561456 13f79535-47bb-0310-9956-ffa450edef68
2007-07-31 19:36:41 +00:00
Vincent Bray
46d7e81888 Address PR42898 by qualifying the value of Pattern for RewriteRule, and later explaining how to snarf the rest of the request url. (and the usual build detritus).
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@558837 13f79535-47bb-0310-9956-ffa450edef68
2007-07-23 19:23:24 +00:00
Nick Kew
0e9e39732f Add SQL Query capability to RewriteMap
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@454683 13f79535-47bb-0310-9956-ffa450edef68
2006-10-10 10:33:06 +00:00
Roy T. Fielding
44fa6e0073 update license header text
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@420990 13f79535-47bb-0310-9956-ffa450edef68
2006-07-11 20:55:32 +00:00
Joshua Slive
b37cb49a96 Make it clear what is meant by per-directory rewrites
and specify the rewrites in <Location> is unsupported.
(The same is probably true for <Files>, but I'd have to
think about that a little more.)

PR: 39843


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@418360 13f79535-47bb-0310-9956-ffa450edef68
2006-06-30 19:04:50 +00:00
Colm MacCarthaigh
dd95d7c37c Update the copyright year in all .c, .h and .xml files
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@395228 13f79535-47bb-0310-9956-ffa450edef68
2006-04-19 12:11:27 +00:00