506bfe33206b2fece40ef25f695af39dd4130fac 1664565 |
|
06-Mar-2015 |
jkaluza |
*) mod_rewrite: Add support for starting External Rewriting Programs
as non-root user on UNIX systems by specifying username and group name
as third argument of RewriteMap directive. |
5d1ba75b8794925e67591c209085a49279791de9 1652507 |
|
16-Jan-2015 |
covener |
mod_rewrite: Improve 'bad flag delimeters' startup error by showing
how the input was tokenized. PR 56528.
Submitted By: Edward Lu <Chaosed0 gmail.com>
Committed By: covener |
06bb3e11d3e997937534ae7bd45b3631d3b5e5ba 1642484 |
|
30-Nov-2014 |
covener |
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. |
3e247a3169ffa145bac1c81361050b19e08784b7 1596963 |
|
22-May-2014 |
trawick |
the fixup hook should log (what is expected to be) local
path just like the translate name hook, for a small hint
when debugging 400 errors set just below |
a792dc2db8e08bd65be6ac844a1fdb001a456b1a 1588544 |
|
18-Apr-2014 |
jim |
strncmp(r->filename, "proxy:", 6) is faster than a
note. Plus, allows for checking even if not due to
rewrite. |
1b988c41ee505962781d110a3e4c2c90f1ea0aa4 1585157 |
|
05-Apr-2014 |
covener |
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. |
1438f5277429188b72ea2172a0143af28dde48c0 1584417 |
|
03-Apr-2014 |
covener |
allow users to workaround the over-agressive backreference
escaping by selecting the characters to escape. |
9c115ff3ada272378a8657b0981476f54de29816 1571369 |
|
24-Feb-2014 |
trawick |
normalize an ugly construct which somehow manages to return the correct value |
37ce4da04e34abd4f13d6842902dec7db0a65fdd 1570288 |
|
20-Feb-2014 |
covener |
*) mod_rewrite: Add RewriteOptions InheritDown, InheritDownBefore,
and IgnoreInherit to allow RewriteRules to be pushed from parent scopes
to child scopes without explicitly configuring each child scope.
PR56153.
Submitted By: Edward Lu
Committed By: covener |
a4bcadc43f29245972e9e8745a5114610065329c 1563418 |
|
01-Feb-2014 |
covener |
Add %{CONN_REMOTE_ADDR} to mod_rewrite. PR56094
Submitted By: Edward Lu <Chaosed0 gmail com>
Committed By: covener |
4ff6259a3db2f4e365f3681df5145dc46d071e6f 1560367 |
|
22-Jan-2014 |
jim |
make mod_rewrite and mod_proxy UDS work together... |
26cfaad316f89eac823df1423e3317317801a5a5 1559398 |
|
18-Jan-2014 |
covener |
no make depend in sandbox, fix bld break from r1559394 |
cc06c8e7a7e785b46083984731b701d0c5447c72 1557641 |
|
13-Jan-2014 |
covener |
don't search for directory indexes/directoryslashes if a URL is in the
middle of being rewritten [in per-dir context]. PR53929 |
fce4949fb0b309a5744afcd503c6ed2d35621ee2 1556206 |
|
07-Jan-2014 |
covener |
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. |
b95471fea55df98d7a6946c2c1826d3e2b5beebc 1528556 |
|
02-Oct-2013 |
jim |
*) mod_rewrite: Make rewrite websocket aware to allow proxying.
PR 55598. [Chris Harris <chris.harris kitware com>] |
a15258e883f505dcac6f4b3718d9e5ef2ea4ce77 1499025 |
|
02-Jul-2013 |
covener |
include util_charset.h in ebcdic builds |
75b4c883b2ef72e0104b8b206f3408dbd1d36768 1452128 |
|
03-Mar-2013 |
jailletc36 |
Remove useless tests.
Turn
if (*x && apr_isspace(*x))
into
if (apr_isspace(*x)) |
991bbfbb888b62a7975d6fa9663adc4ac3a5975a 1447426 |
|
18-Feb-2013 |
covener |
Unbreak default case of RewriteBase not being set after r1410681
Contributed By: Evgeny Barsukov
Reviewed By: covener |
855d6aa9f641cd160ee4265824a3ad3d06231c76 1410681 |
|
17-Nov-2012 |
covener |
PR53963: don't merge the rewritebase down w/o an opt-in |
097d611eeac4cab21bd1614568147b9bab5a6f1d 1369999 |
|
06-Aug-2012 |
sf |
remove now unecessary assignment |
ae56bf0e8f572f56a9129c590d9f3719d09cb94f 1369995 |
|
06-Aug-2012 |
sf |
Use apr_pcalloc for rewritemap_entry struct, to avoid uninitialized entries.
PR: 53663
Submitted by: Mikhail T. <mi apache aldan algebra com> |
1af49a964f9ad4bebde0510670e2a7551497c986 1359857 |
|
10-Jul-2012 |
sf |
style fix |
6fb008bb35c9c020a540341d0dea4f093aece92c 1356813 |
|
03-Jul-2012 |
covener |
add a pointer to 'rewriteoptions', without giving away the option name, if someone
happens to have rewrite trace on when mod_rewrite declines a non URL-path. |
72709d60c290ddc1f60fe2c78ab67b7954e9230d 1356115 |
|
02-Jul-2012 |
jorton |
* modules/mappers/mod_rewrite.c (cmd_rewriteoptions, hook_uri2file):
Add "AllowAnyURI" flag which disables the strict URL-path input
string check introduced to fix CVE-2011-3368/CVE-2011-4317.
* docs/manual: Update docs.
Inspired by: covener |
459eaf0826f995b73a0dc066f59ea10d2824e72d 1331110 |
|
26-Apr-2012 |
sf |
Replace use of apr_file_write() with apr_file_write_full() to prevent
incomplete writes.
Add comments in some places where error handling/logging is missing.
PR: 53131.
Submitted by: Nicolas Viennot <apache viennot biz>, Stefan Fritsch |
5a1f28ac93914b4bae892c69ac4b3e670bc10da8 1309602 |
|
04-Apr-2012 |
nd |
mod_rewrite: Fix RewriteCond integer checks to be parsed correctly.
PR: 53023
Submitted by: Axel Reinhold <apache freakout.de>
Reviewed/Updated by: nd |
9cb85c146fd7ca2dbe2ea0d6c0a8d22fccdbf224 1309585 |
|
04-Apr-2012 |
nd |
static scope for rewritemap_mutex_type. |
dc585e0df783dd91b8121ea1cfa743cea2ac12fd 1239872 |
|
02-Feb-2012 |
covener |
revert "overloaded" recent additions to mod_rewrite |
5c27bf5ec8bc69e0f25cae12c9fd580b16170d44 1239681 |
|
02-Feb-2012 |
covener |
add an internal sleep map function that expands to an empty string. |
59c253e306db0e31da377c5ab5a74f8d6281171e 1239679 |
|
02-Feb-2012 |
covener |
treat a rewriterule substitution that expands to "-" as if the rule
had a literal "-". |
d6eeeda6ca9e4acb44b40980a0749dc2a4f0a1cc 1236350 |
|
26-Jan-2012 |
jim |
https also needs QS |
6be38922add55325d9acadb2406a4072cb8865de 1233604 |
|
19-Jan-2012 |
trawick |
Adjust CVE-2011-3368/CVE-2011-4317 fixes to rely solely on
core's translate-name to fail unsupported URIs.
Rewrite and proxy now decline what they don't support rather
than fail the request.
Suggested by: trawick
Implemented by: jorton
Tweaked by: wrowe |
a221184be5b40f8349982d94cda02b98068ce0d8 1214003 |
|
14-Dec-2011 |
minfrin |
Further clarify the naming of the entity that originates the request by
calling that entity a useragent instead of a client. |
185aa71728867671e105178b4c66fbc22b65ae26 1209766 |
|
03-Dec-2011 |
sf |
Add lots of unique tags to error log messages |
8ff777ad06909c2e06d7b5ba2142195ddfae22a9 1209432 |
|
02-Dec-2011 |
jorton |
Fix for additional cases of URL rewriting with ProxyPassMatch or
RewriteRule, where particular request-URIs could result in undesired
backend network exposure in some configurations. (CVE-2011-4317)
Thanks to Prutha Parikh from Qualys for reporting this issue.
* modules/proxy/mod_proxy.c (proxy_trans): Decline to handle the "*"
request-URI. Fail for cases where r->uri does not begin with a "/".
* modules/mappers/mod_rewrite.c (hook_uri2file): Likewise. |
46578aac029a8de1703b48f8050c56d3e9442e5e 1209053 |
|
01-Dec-2011 |
minfrin |
mod_rewrite: Add the AllowNoSlash RewriteOption, which makes it possible
for RewriteRules to be placed in .htaccess files that match the directory
with no trailing slash. PR 48304. |
8269892c0023355f51a3f67be442662aefdc6f92 1206291 |
|
25-Nov-2011 |
minfrin |
Introduce a per connection "peer_ip" and a per request "client_ip" to
distinguish between the raw IP address of the connection and the effective
IP address of the request. |
49fd87ed00b95bdd7a4cfc874e5c5fe4a04faf5a 1204968 |
|
22-Nov-2011 |
minfrin |
Introduce a per request version of the remote IP address, which can be
optionally modified by a module when the effective IP of the client
is not the same as the real IP of the client (such as a load balancer). |
086e0d6a05858a9f7cf757f6cf218b5a27263cb7 1175979 |
|
26-Sep-2011 |
jim |
No longer do double duty... |
11e076839c8d5a82d55e710194d0daac51390dbd 1174929 |
|
23-Sep-2011 |
sf |
More cleanup: Expand tabs and some more indentation fixes
No functional change |
5bfaaf573bacb45c1cf290ce85ecc676587e8a64 1174751 |
|
23-Sep-2011 |
jim |
Cleanup effort in prep for GA push:
Trim trailing whitespace... no func change |
7826ee5c5d116ecd5bcb3662aba6cc4cd15f310f 1171251 |
|
15-Sep-2011 |
sf |
replace non-threadsafe use of srand() and rand() with ap_random_pick() |
7fc2cdc3683b47fcf5f39a094eddefa7b22dbfc0 1154808 |
|
08-Aug-2011 |
covener |
Prevent a crash if a non-existent internal RewriteMap is specified
in a server context with RewiteEngine off, then later referenced.
Submitted By: Ben Noordhuis
Reviewed By: covener |
3e520e9f095fbbcaa3c216c8ea56e89bd6fd58b4 1147614 |
|
17-Jul-2011 |
sf |
Make the SERVER_NAME variable include [ ] for literal IPv6 addresses, as
mandated by RFC 3875
PR: 26005 |
512bc8626ede860ea2ef329e6c2ffbd6ceba3903 1143541 |
|
06-Jul-2011 |
sf |
Fix regexp RewriteCond with NoCase,
reported by Steffen <info apachelounge com> |
d95a7ac0fe7a06495c3aab5d684b4174f9ab282c 1142164 |
|
02-Jul-2011 |
sf |
Add string valued expressions to ap_expr, do some API cleanup
- add possibility to have expressions that evaluate to a string and not to
a boolean value
- modify ap_expr_parse_cmd() interface to support this and make it more
convenient to use in general
- rename AP_EXPR_FLAGS_* to AP_EXPR_FLAG_* for consistency |
3c290fd0361d6d9d84d97725eaf299456bddd6cf 1138627 |
|
22-Jun-2011 |
sf |
Various code cleanup
PR: 51398
Submitted by: Christophe Jaillet <christophe jaillet wanadoo fr> |
2c3a18efdb0536acb42f25758b66bb85a67a9131 1138617 |
|
22-Jun-2011 |
sf |
We already have ap_str_tolower(), so also add ap_str_toupper() function and use
it where possible. |
86e9b54992c0b0882a00fdffbd993779735759b0 1136966 |
|
17-Jun-2011 |
jim |
revert this... sorry |
719b56ea371f383dfc566ac97e325b351bab2e2b 1136946 |
|
17-Jun-2011 |
jim |
Revert "fix unexpected enum operation"
This reverts commit d407a566ab24e576a3f143f5c27b2ccf90f5d8da. |
0361adfdaad5de11b0a31e9339be8b4856557986 1136096 |
|
15-Jun-2011 |
trawick |
fix unexpected enum operation |
04d6458a2cd3b44376f00a56804bb6bf6bc46865 1135084 |
|
13-Jun-2011 |
sf |
Avoid some memory allocations by using apr_table_setn where the string arguments
are allocated from the request pool and not modified later on.
Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 51358 |
33510984c759eb3da154ceb0db9b75fa0031d3b4 1132494 |
|
05-Jun-2011 |
sf |
- Introduce concept of context prefix (which is an URL prefix)
and context document root (which is the file system directory that
this URL prefix is mapped to). This generalization of the document
root makes it easier for scripts to create self-referential URLs and
to find their files.
- Expose CONTEXT_DOCUMENT_ROOT and CONTEXT_PREFIX as envvars, in mod_rewrite,
and in ap_expr.
- Make mod_alias and mod_userdir set the context information.
- Allow to override the document root on a per-request basis. This allows
mass vhosting modules to set DOCUMENT_ROOT correctly.
- Make mod_vhost_alias set the per-request document root
PR: 26052, 46198, 49705
Remaining tasks:
- Use the context document root & prefix in mod_rewrite to make RewriteBase
unneccessary in many cases. Do this without breaking compatibility.
- Write docs. |
51384f4dc9cd87f8670177563beea1e635eac46d 1103459 |
|
15-May-2011 |
sf |
Improvements found by cppcheck:
remove some unused variables and dead assignments, reduce the scope of some
variables, add some parens to improve readability |
4fca72b7b53b5419325e06837c98266148111b52 1098162 |
|
30-Apr-2011 |
trawick |
fix some dead assignments found by the clang analyzer |
b63fa8c07fd84b3d6674d0dbeae1c696fc0b6498 1096551 |
|
25-Apr-2011 |
sf |
Report filename and line number in config warning |
5447b616f660d11019afc5230ef34ca34d2d8fc7 1086662 |
|
29-Mar-2011 |
trawick |
change signed single-bit fields to unsigned
some of these were exposed to mods so the mmn is bumped, without
regard to whether any compiler will have to generate different
code |
df35b8fecd225da2fe9d4e3c35ec2190d157a17e 1084714 |
|
23-Mar-2011 |
rbowen |
Or, perhaps that's even clearer, without getting too verbose. |
eae22aec45edd2af8768f4e59d911675b6177f46 1084698 |
|
23-Mar-2011 |
rbowen |
Attemps to clarify a rather cryptic error message. |
60e04f300f386e22a77fee85a84f538f377ed9d8 1081197 |
|
13-Mar-2011 |
minfrin |
mod_rewrite: Decline immediately if the rewrite engine is disabled, instead
of making various comparatively expensive proxy checks first. |
59d316b83d42d2a07e25c20d8c35a07b369618bd 1070153 |
|
12-Feb-2011 |
sf |
Use ap_state_query() to fix many modules that were not correctly initializing
if they were not active during server startup but got enabled later during a
graceful restart (in which case they need to do all work during a single
config run). |
4203a35c28d7c60adb7e9ef3be87aad34951c79a 1053872 |
|
30-Dec-2010 |
sf |
Make the REQUEST_SCHEME variable available to scripts and mod_rewrite |
49722d45d317695eb555669f0b77558ee28ecbd7 1053814 |
|
30-Dec-2010 |
rpluem |
* Silence compiler warning about possibly uninitialized use |
c094add0a23fe1120fd33711ba2e2d084f5629a1 1053750 |
|
29-Dec-2010 |
sf |
Allow to use arbitrary boolean expressions (ap_expr) in RewriteCond. |
cd93c79aec9cd218d39531d3fdc05d3eaa3ba499 1053742 |
|
29-Dec-2010 |
sf |
in struct backrefinfo: remove nsub member which is never read,
make source member const |
12b26f433fd7d6fc9f76413d7c2cabf4fa5cb300 1053726 |
|
29-Dec-2010 |
sf |
Allow to unset environment variables using E=!VAR.
PR: 49512
Submitted by: Mark Drayton <mark markdrayton info>, Stefan Fritsch |
7b7e8ba34e262064914ceedacd5f7d9201b6575c 1044673 |
|
11-Dec-2010 |
covener |
PR 50447: mod_rewrite escapes the original [escaped] query string even when
you haven't modified it. |
6f2fbf354b34981f398cf0313aa44702ea2a7066 1042255 |
|
04-Dec-2010 |
covener |
PR 39313: allow the user to configure which rules come first when RewriteRules
are merged with RewriteOptions Inherit.
Submitted By: Jérôme Grandjanny <jerome.grandjanny cea.fr>
Reviewed By: covener |
8651de219ec5f595af20afdc9da41ce72aaa50d5 1032431 |
|
08-Nov-2010 |
minfrin |
mod_rewrite: Fix the RewriteEngine directive to work within a
location. Previously, once RewriteEngine was switched on globally,
it was impossible to switch off. |
503bec4c591d28ac6cec7182294cdef2ec6a9829 1028778 |
|
29-Oct-2010 |
covener |
Add an END flag to RewriteRule that acts like L=LAST but also prevents
further rounds of rewrite processing due to per-directory substitutions. |
c9e2079b399fe91342586f268f05c44b9bc58677 1023063 |
|
15-Oct-2010 |
sf |
return early if we are not logging anyway |
4e0565f42481dff87062cbfc55a2ecaa36b92e83 1002156 |
|
28-Sep-2010 |
sf |
save some memory by using cmd->temp_pool instead of cmd->pool in some places |
9079476dbce755dc4cc704728a52004b6b88e259 997878 |
|
16-Sep-2010 |
wrowe |
Introduce integer comparison support in RewriteCond
The operators -gt, -ge, -eq, -le, -lt and -ne follow the bash test' semantics
for comparing the integer values of the lhs and rhs expressions, as opposed
to the string evaluations performed by > >= = <= and <.
Note that -lt and -le overlap the existing -l test, and could be confused in
expresions such as -ltestfile - to avoid this conflict use -L or -h in place
of the legacy -l file symlink test operator. |
7c3ad2acf9b57a042023c227ba331fe2daaacbb7 997869 |
|
16-Sep-2010 |
wrowe |
Reduce complexity and fix a regex.t based on observation by rpluem;
- follow the same logic of '=' for >[=] and <[=], skipping p->type chars
for the resulting p->pattern
- introduce pskip logic to greatly simplify logging, track negation '!', '=',
and new comparators ">/<[=]", backspacing only for the purpose of logging.
It's trivial to expand this to the -X operators in the future. |
be9868ae2f9e1ac9aa75fe1ad0b7d5a12bb8021e 997553 |
|
16-Sep-2010 |
wrowe |
*) Accept modern bash test conventions of -h or -L for testing symlinks
(for another patch against -l yet-to-come)
*) Introduce >= and <= syntax for greater-or-equal, or less-or-equal
string comparisons
*) Respect [NC] conventions for >[=]/<[=] string comparison, which is
horribly sensitive to the current charset. |
c516666ad84aa10d335545e27918babe151fdc4f 991516 |
|
01-Sep-2010 |
trawick |
set default pattern type using the enum value instead of
integer literal (Intel C compiler groans about this) |
da48ae521bcc2751f8eb8dfb02f7aab0f46943c6 986921 |
|
18-Aug-2010 |
sf |
mod_rewrite: Log errors if rewrite map files cannot be opened
PR: 49639 |
ae28bb56c1e25848fab0cda8ea2fde16103f31b0 986912 |
|
18-Aug-2010 |
sf |
Remove obsolete "see error log" log messages.
mod_rewrite now uses the error log. |
6a76fa5b11c6f0d07a3c226ac43225885bbf60c4 982017 |
|
03-Aug-2010 |
sf |
remove some useless use of strlen() |
1017d9c4dfb131d49ac4cf84eb60635670279b00 981086 |
|
31-Jul-2010 |
sf |
Code cleanup: replace strncpy by apr_cpystrn or apr_pstrmemdup
Submitted by: Takashi Sato <takashi lans tv com>
PR: 43432 |
da20b997bf4652f7597e0a7845db371aab2f7187 960236 |
|
03-Jul-2010 |
rjung |
Remove superfluous EOL from mod_rewrite logging.
It's no longer needed, since mod_rewrite now uses
our usual error log. The superfluous EOL was logged
as '\n'. |
39d67f66729a7008c1e73d65a81e778ce819a227 960233 |
|
03-Jul-2010 |
rjung |
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. |
ea8b550f8ae8322fd52b0ad9ff8388c04329c16d 953785 |
|
11-Jun-2010 |
covener |
mod_rewrite.c:447: warning: format not a string literal and no format arguments |
bc36e90829b1ee123307a2339519265139a88173 951903 |
|
06-Jun-2010 |
sf |
Replace RewriteLog/RewriteLogLevel with trace log levels |
36ef8f77bffe75d1aa327882be1b5bdbe2ff567a 951895 |
|
06-Jun-2010 |
sf |
Use the new APLOG_USE_MODULE/AP_DECLARE_MODULE macros everywhere to take
advantage of per-module loglevels |
024e70e05386a6367eb45d0d1cc406764520ff4c 940981 |
|
04-May-2010 |
wrowe |
Catch up with ap_[proc|global]_mutex_create api change |
9c78f8d71737dfbbbf4da2f9acb397567a10e88b 900022 |
|
16-Jan-2010 |
sf |
Turn static function get_server_name_for_url() into public function
ap_get_server_name_for_url() and use it where appropriate. This fixes
mod_rewrite generating invalid URLs for redirects to IPv6 literal addresses. |
f0134a568e11b14c10b8787800faf912010f5d29 894383 |
|
29-Dec-2009 |
rbowen |
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. |
11f2c481e1d57bedb3f758565307501e9a2730dd 883540 |
|
24-Nov-2009 |
trawick |
Replace AcceptMutex, LockFile, RewriteLock, SSLMutex, SSLStaplingMutex,
and WatchdogMutexPath with a single Mutex directive. Add APIs to
simplify setup and user customization of APR proc and global mutexes.
(See util_mutex.h.) Build-time setting DEFAULT_LOCKFILE is no longer
respected; set DEFAULT_REL_RUNTIMEDIR instead.
Some existing modules, such as mod_ldap and mod_auth_digest gain
configurability for their mutexes. |
727d68c6009030f56a350b4603384ce4fb844341 822004 |
|
05-Oct-2009 |
minfrin |
mod_rewrite: Make sure that a hostname:port isn't fully qualified if
the request is a CONNECT request.
Submitted by: Bill Zajac <billz consultla.com> |
4a13940dc2990df0a798718d3a3f9cf1566c2217 807930 |
|
26-Aug-2009 |
bjh |
Bring back OS/2 support.
Reverses r758929 with a little bit of conflict resolution. |
33d9be77cc6f5fc8734e9c1f526b82d359955152 783734 |
|
11-Jun-2009 |
rpluem |
* Remove locking for writing to the rewritelog. There seems to be no reason
why locking is required here.
See also: http://marc.info/?l=apache-httpd-dev&m=124282193217344&w=2
PR: 46942
Submitted by: Dan Poirier <poirier pobox.com>
Reviewed by: rpluem |
6861702c2d883e5c0744d5f7528d2060671ad24d 776325 |
|
19-May-2009 |
takashi |
Fix the error string returned by RewriteRule. RewriteRule returned "RewriteCond: bad flag delimiters" when the 3rd argument of RewriteRule was not started with "[" or not ended with "]".
PR: 45082
Submitted by: Vitaly Polonetsky <m_vitaly topixoft.com> |
1ca054782cb35b5f67686a41b1df75c269fa617b 758929 |
|
27-Mar-2009 |
trawick |
remove OS/2 platform support |
a566332109ac25c60825f860fee4f68f2e3e69b7 757427 |
|
23-Mar-2009 |
jorton |
* modules/mappers/mod_rewrite.c (apply_rewrite_rule): When evaluating
a proxy rule in directory context, do escape the filename by
default, since mod_proxy will not escape in that case due to the
(deliberate) fixup hook ordering.
Thanks to: rpluem
PR: 46428 |
17ac330ebaa71b24cb77580411a231ee45996e03 737973 |
|
27-Jan-2009 |
pquerna |
Add IPv6 variable to mod_rewrite.
Submitted by: Ryan Phillips <ryan-apache trolocsis.com> |
6824182b3b8e045db97a228d3127bdfcbdfeb0bc 730274 |
|
31-Dec-2008 |
niq |
Fix mod_rewrite "B" flag breakage by reverting r589343
PR#45529 |
9f07b6dc343a4e3eba5f4c47050a77441723ce89 729538 |
|
26-Dec-2008 |
nd |
add mod_proxy_scgi, as announced a long time ago |
14f5138e973a76d8c6bf5296544b4e5149216681 728220 |
|
20-Dec-2008 |
covener |
axe r->path_info in a more standard way, suggested by Aleksander Budzynowski |
1464434c2c104e0ba224644c42552330f5158537 728015 |
|
19-Dec-2008 |
covener |
*) 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] |
a42b70fa75429d73ef00d6ae212676f8a652f51c 723565 |
|
05-Dec-2008 |
pquerna |
Import the core parts of the DTrace patch. This is a modified and updated
version of what was submited by Theo before:
<http://mail-archives.apache.org/mod_mbox/httpd-dev/200805.mbox/%3C6AFBCFE8-4CCA-4A02-8A43-F9170689695D@omniti.com%3E>
Note, this does not hook it up into the build system at this time, because
the original patch was a little too creative there.
Submitted By: Theo Schlossnagle <jesus omniti.com> |
a91a59d0b0ceed7cd5621fe8757eda5ff6a043a8 722399 |
|
02-Dec-2008 |
pquerna |
API Cleanup in preperation for 2.4.x, make sure all exported functions or variables contain an ap_ prefix. |
d380e1244317d19f680584b24e83cff95fd9005f 708655 |
|
28-Oct-2008 |
jorton |
* modules/mappers/mod_rewrite.c (do_rewritelog): Add prototype with
printf attribute flagged so that gcc -Wformat-security will pick
up PR 46110-type errors as a warning. |
385cae6ab0be1e839fc23277b5f8067f9f0c6bc8 708654 |
|
28-Oct-2008 |
rpluem |
* Supply the per-dir parameter to the rewritelog call where it is needed.
PR: 46110 |
66a3c0bbc9e67e3bb47fa2e03c32099b7ead4288 683284 |
|
06-Aug-2008 |
jorton |
* modules/mappers/mod_rewrite.c (cmd_rewritelock): Add missing
sentinel. |
4b7d31a90eb781a12a87d489bbb0db46b97e5631 682788 |
|
05-Aug-2008 |
jim |
picking nits - de-tab |
1bd5bf171cd48114424f2f4e95346e9a39c38753 670254 |
|
21-Jun-2008 |
rpluem |
* Fix formating. No functional change. |
1cdc42144f3e40e76f90704e98a04585170d234d 670198 |
|
21-Jun-2008 |
tdonovan |
correct r670061 - preserve query string with [noescape, proxy] |
aced0f6381ba4b9ec6ca8b9f9253f5aeb1a0b1ac 670061 |
|
20-Jun-2008 |
tdonovan |
After r649840, mod_proxy_http will no longer append a query string from r->args if "no-canon".
Moved the NOESCAPE test down after PATH_INFO, and preserve the query string in r->filename if
NOESCAPE (which implies "no-canon")
Previously this was only done for CONNECT requests, where (r->uri == r->unparsed_uri)
see mod_proxy:proxy_detect |
8ee58d1690f3d354f136e70181b78b9dc63f4312 664333 |
|
07-Jun-2008 |
rpluem |
* Offer the possibility to create session cookies in the case a path is
given. |
5d43ff13e733c78683f05d920116d194110aa097 664330 |
|
07-Jun-2008 |
rpluem |
* Allow HttpOnly, 1 and true to enable HttpOnly, allow secure, 1 and true
to enable secure. |
874b673d25e9a0e100193b288e1cbdf53744d54a 660566 |
|
27-May-2008 |
rpluem |
* Make setting of HttpOnly flag more explicit. |
8309237344bc420f085ee428bb7175459721c59a 660461 |
|
27-May-2008 |
rpluem |
* Handle the case that secure is NULL |
06d3a46db9574ad55b65fed36b856fee72bd71a7 647395 |
|
12-Apr-2008 |
rpluem |
* Allow Cookie option to set secure and HttpOnly flags
PR: 44799
Submitted by: Christian Wenz <christian wenz.org>
Reviewed by: rpluem |
e1a26e8050bf62459a7ef1c5064b714811767417 639465 |
|
20-Mar-2008 |
rpluem |
* Initialize hash needed by ap_register_rewrite_mapfunc early enough.
PR: 44641
Submitted by: Daniel Lescohier <daniel.lescohier cnet.com>
Reviewed by: rpluem, niq, wrowe, jim |
21f22cebb41181ee3aa9d5eeb0541292cf202d9a 633791 |
|
05-Mar-2008 |
rpluem |
* Add checkfile2 at the end of the struct and not in the middle of the struct. |
b0c8eb40d588cf647a0bcbccfd51644a198faed9 632730 |
|
02-Mar-2008 |
nikke |
mod_rewrite: Check all files used by DBM maps for freshness, mod_rewrite
didn't pick up on updated sdbm maps due to this.
PR41190 [Niklas Edmundsson]
NOTE: Only tested on httpd-2.2.8. |
cfef06e931e7c09128c0399b9005dd76a3ccdfd7 611134 |
|
11-Jan-2008 |
niq |
mod_rewrite: Don't canonicalise URLs with [P,NE]
PR 43319 |
0bcef5d20ccdb6e12abb0879d63bed1a57eea249 589343 |
|
28-Oct-2007 |
niq |
Update r573831 to avoid duplicating URL-escaping code.
Ref. http://www.mail-archive.com/dev@httpd.apache.org/msg38532.html |
faf000c6b53f9e5a42ff3aedc2e23eeb844e5d88 575802 |
|
14-Sep-2007 |
nd |
don't fall through this case. Just break. |
b65a184929c97d0b0e4d3bad42648e0e9ce1b8fe 574684 |
|
11-Sep-2007 |
rpluem |
* 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. |
24dab1bea0c6b70b2b59fee1e305131eca33c87a 574201 |
|
10-Sep-2007 |
rpluem |
* Also set the Vary header if a rewrite condition is true and uses a HTTP
header, but all remaining rewrite conditions are skipped due to the [OR]
flag. |
5ff68527ed4cfc34ba93eb201b79fc3363ee66e4 573831 |
|
08-Sep-2007 |
niq |
Add option to escape backreferences in RewriteRule.
PR 34602 and PR 39746
Patch by Guenther Gsenger |
0696197a54f186a65abacba1037f6fbe0cb975a1 557837 |
|
20-Jul-2007 |
niq |
Multiple trivial fixes from Christophe JAILLET
PR 38699, 39518, 42005, 42006, 42007, 42008, 42009
The patches are all his, and are sufficiently trivial to review
at a glance. |
5e62d4ba852b98928e9815e5cce6116f1691913a 454732 |
|
10-Oct-2006 |
niq |
Fix rewritemap/dbd bug pointed out by Davi Arnaut, and improve error reporting. |
c359ec1e26d89b9ebf4937a6466bfe5d5d6ba6d0 454723 |
|
10-Oct-2006 |
niq |
Fix bugs pointed out by rpluem in rewritemap/dbd |
11c657637c6776a11e7eab7c857115908e8566b4 454687 |
|
10-Oct-2006 |
niq |
Retrieve optional functions in time! |
1b27a3a26f18191db7ecb4d536cb121ba9520a8e 454683 |
|
10-Oct-2006 |
niq |
Add SQL Query capability to RewriteMap |
1ce78cf71b5baaf2c1ab48e818cb1f2397df5010 440337 |
|
05-Sep-2006 |
trawick |
Replace ap_get_server_version with ap_get_server_banner() and
ap_get_server_description().
High-level summary:
The full server version information is now included in the error log at
startup as well as server status reports, irrespective of the setting
of the ServerTokens directive.
Third-party modules must now use ap_get_server_banner() or
ap_get_server_description() in place of ap_get_server_version(). |
6d8d07c0167960873d449b217da08faab50c410d 426138 |
|
27-Jul-2006 |
mjc |
SECURITY: CVE-2006-3747 (cve.mitre.org)
mod_rewrite: Fix an off-by-one security problem in the ldap scheme
handling. For some RewriteRules this could lead to a pointer being
written out of bounds. Reported by Mark Dowd of McAfee.
Ack: trawick, lars, jorton, wrowe, benl |
842ae4bd224140319ae7feec1872b93dfd491143 420983 |
|
11-Jul-2006 |
fielding |
update license header text |
3ec4328f079d8867cc323155e59678ad9437914f 405625 |
|
10-May-2006 |
rooneg |
Add support for fcgi:// proxies to mod_rewrite.
Submitted by: Markus Schiegl <ms schiegl.com>
* modules/mappers/mod_rewrite.c
(is_absolute_uri): Recognize fcgi:// urls.
* CHANGES: Note change. |
3d81f57512275ca06a60a9bcbd23c1f8b429fdf2 395228 |
|
19-Apr-2006 |
colm |
Update the copyright year in all .c, .h and .xml files |
e8f95a682820a599fe41b22977010636be5c2717 332306 |
|
10-Nov-2005 |
jim |
No functional Change: Removing trailing whitespace. This also
means that "blank" lines consisting of just spaces or
tabs are now really blank lines |
d916768e4f9ecd6a7c91628be711a5ce1a5cd16d 161354 |
|
14-Apr-2005 |
gregames |
lookup_map_txtfile: used buffered i/o rather than reading RewriteMap txt: files
one byte at a time.
I was horrified to see a dump of a server with hundreds of worker threads in
read() syscalls, all trying to read a 149k RewriteMap file simultaneously.
each thread finds one key, inserts it into the cache, then the rest of the
information is discarded. there are further improvements which could be made but
let's try the simplest first. |
ef5650b61a8e35f3cc93ec07e73efc17ea329894 153384 |
|
11-Feb-2005 |
jorton |
Move the POSIX reg* implementations into the ap_* namespace;
internalise the ap_reg*<->PCRE wrapper:
* configure.in: Add srclib/pcre to the include path.
* include/ap_regex.h: Renamed from include/pcreposix.h. Prefix all
constants with AP_; prefix all functions and types with ap_. Define
AP_DECLARE to nothing if necessary. Remove regcomp error codes.
* include/httpd.h: Include ap_regex.h not pcreposix.h.
(ap_pregcomp, ap_regexec, ap_regfree): s/regex_t/ap_regex_t/.
(ap_regexec, ap_regerror): Prototypes moved to ap_regex.h.
* server/util.c (regex_cleanup, ap_pregcomp, ap_pregsub, ap_pregfree):
Adjust for ap_ prefixed types. (ap_regexec, ap_regerror): Removed.
* server/Makefile.in: Build util_pcre.c.
* server/util_pcre.c: Copied from srclib/pcre/pcreposix.c; remove use
of PCRE-internals to do error mapping; rename types to add AP_/ap_
prefixes as above. Use APR includes. (ap_regerror): Use apr_snprintf.
* srclib/pcre/Makefile.in: Don't build pcreposix.c into libpcre.la.
* modules/*: Update to use new type and constant names.
PR: 27750 (part one)
Submitted by: Andres Salomon <dilinger voxel.net>, Joe Orton |
08cb74ca432a8c24e39f17dedce527e6a47b8001 151408 |
|
04-Feb-2005 |
jerenkrantz |
Update copyright year to 2005 and standardize on current copyright owner line. |
b1c191ecf0d779a91305425cace553b52679a014 126171 |
|
23-Jan-2005 |
striker |
More hardcoded schemes in mod_rewrite... :/
Cooked up in a debugging session with Justin Erenkrantz.
* modules/mappers/mod_rewrite.c
(splitout_queryargs): Don't mess with the query args when dealing
with ajp or balancer.
(hook_uri2file): Account for r->filename being NULL. |
d24951a01e0fefe401f808002bbb240573408f47 124584 |
|
07-Jan-2005 |
striker |
Make the combination of mod_proxy_ajp and mod_rewrite work correctly.
* modules/proxy/proxy_ajp.c
(ap_proxy_ajp_request): Update call to ajp_send_header().
* modules/proxy/ajp.h
(ajp_send_header): Add a uri parameter.
* modules/proxy/ajp_header.c
(ajp_marshal_into_msgb): Add a uri parameter and use the
passed in uri instead of r->uri.
(ajp_send_header): Add a uri parameter. Update call to
ajp_marshal_into_msgb().
* modules/mappers/mod_rewrite.c
(is_absolute_uri): Add handling of 'ajp' and 'balancer' schemes. |
1ff190ac6a56eb87567267d1b0b9509fc1ab765a 124278 |
|
05-Jan-2005 |
wrowe |
Fix another signedness bug |
7b6ba9c468f26bdb3492d5e8cb79628a3b04e8c8 123882 |
|
02-Jan-2005 |
wrowe |
FINALLY Correct ap_http_method()! It is NOT a method, it's a SCHEME!
Bumped mmn, and ap module cookie, for this function rename.
It's not a deprecation, as ap_http_method would be a lovely function
name sometime in the future: to determine what the function name implies. |
f1ca5f22ea3ce7307bcf71e2687d6d92012ee259 105666 |
|
02-Nov-2004 |
jorton |
* modules/mappers/mod_rewrite.c (hook_uri2file): Revert r1.259 to fix
regression in proxy and QUERY_STRING handling (though with proxy
issues on HEAD mod_rewrite [P] stuff is still completely broken). |
56fa845f76f99bb556a9a2fc8588f279adcad5e3 105411 |
|
12-Oct-2004 |
jorton |
* os/unix/os.h: Define AP_NEED_SET_MUTEX_PERMS.
* modules/mappers/mod_rewrite.c, modules/ssl/ssl_engine_mutex.c: Use
AP_NEED_SET_MUTEX_PERMS to determine whether unixd_set_*_mutex_perms
calls are necessary. |
c178b761acd6bffa199c2fd28c4469492b989699 105399 |
|
10-Oct-2004 |
nd |
remove the RewriteOption MaxRedirects; LimitInternalRecursion is sufficient
for the administrator |
e712cdaeb07f4e9130b1f577e9b8db242357f6c4 105198 |
|
18-Sep-2004 |
trawick |
mod_rewrite: Handle per-location rules when r->filename is unset.
Previously this would segfault or simply not match as expected,
depending on the platform. |
2f9e367f5dff48c3f432a462f0f2624bccba26d0 104884 |
|
28-Aug-2004 |
nd |
Fix query string handling for proxied URLs.
PR: 14518
Submitted by: michael teitler <michael.teitler cetelem.fr>,
Jan Kratochvil <rcpt-dev.AT.httpd.apache.org jankratochvil.net> |
db443e0132f14dac789ab97ec23ce124360d74c2 104878 |
|
28-Aug-2004 |
nd |
Fix darn typo.
Submitted by: Jan Kratochvil <rcpt-dev.AT.httpd.apache.org jankratochvil.net> |
c1ba3b0ac00c4fee2f4b950dfdb167b39611b661 103691 |
|
18-May-2004 |
nd |
external map responses were cut at 2048 bytes (and possibly got out of sync that
way). Now they are unlimited. |
46820eca7dc57ae17c235389a0cd39140a5db8b5 103335 |
|
10-Apr-2004 |
nd |
fix cache confusion which happens if different virtualhosts define
rewritemaps with the same name.
This is done using name mangling. For the cache we prefix the map name
with the hex value of the current server struct pointer. This way
inherited maps still use the same cache.
PR: 26462 |
210817da3118a900388980e4481e4aec6a58f101 103261 |
|
03-Apr-2004 |
nd |
mod_rewrite no longer turns forward proxy requests into reverse proxy
requests.
PR: 28125 |
46c99ed700a996f84dee6b1fe42d22ce9f27b5a0 103199 |
|
29-Mar-2004 |
nd |
add support for rewrite rules in proxy containers
PR: 27985 |
b59156c5f9f70aecb0a3662d42c47e9ee5a2f4ae 102904 |
|
09-Mar-2004 |
madhum |
Enable mod_rewrite to recognize SSL variables (using ssl_var_lookup)
Submitted by: Joe Orton
Reviewed by: Madhusudan Mathihalli |
78cd48acd325773619d78ac0d7263a99a8922fae 102618 |
|
09-Feb-2004 |
nd |
fix name of The Apache Software Foundation |
52f13df58bab77959915d669d156f89c3f1aa7ed 102572 |
|
08-Feb-2004 |
nd |
fix copyright dates according to the first check in |
ce9621257ef9e54c1bbe5ad8a5f445a1f211c2dc 102525 |
|
06-Feb-2004 |
nd |
apply Apache License, Version 2.0 |
1985662f1669e0596e9c5277d275e46586f9c9e0 102418 |
|
27-Jan-2004 |
nd |
issue a warning if an external rewrite map is used without RewriteLock. |
96b5d1153e163ebbe6d85cdbd88434fdbbaaa385 102417 |
|
27-Jan-2004 |
nd |
fix error handling during flag parsing |
bf28a00d8218aa76a56eddabca308e8d0e691626 102404 |
|
25-Jan-2004 |
nd |
EOLs sent by external rewritemaps are now consumed
as whole. That way, on systems with more than one EOL character
rewritemap programs no longer need to switch stdout to binary
mode.
PR: 25635 |
70f665a8945f3bdfe8bbeaa063de2aa722fc9b29 102401 |
|
24-Jan-2004 |
nd |
Introduce the ability to force a content handler via
the [handler=...] flag. |
c08f5a0cf2b8903255186ba998a4481dfac9c796 102398 |
|
24-Jan-2004 |
nd |
Introduce the RewriteCond -x check, which returns
true if the pattern is a file with execution permissions. |
5bcdf2cd27ab0c91a3c7eaffbff4cb8505389dc1 102327 |
|
13-Jan-2004 |
nd |
allow proxying and rules in .htaccess in subrequests
PR: 14648, 15114 |
10bf43150250e485b6f8eb6c6e17ad8670dd6f98 102325 |
|
13-Jan-2004 |
nd |
with the new general status stuff, F and G are just shortcuts
-> simplify. |
02b0660d7f44ff8106bd5095653e9c19e39ec37d 102321 |
|
13-Jan-2004 |
nd |
allow setting of any valid HTTP response code via R flag.
except for redirects this implies [L] and match-only (no
substitution).
PR: 25917 |
a04a2a0b164c28a8d43afb5d449d29c3e74756b1 102316 |
|
13-Jan-2004 |
nd |
no need to copy the string again |
5b8e35ad88268c0210d93288dad57c2f1d3e8811 102313 |
|
13-Jan-2004 |
nd |
weekday and monthnames are locale dependent... |
abe63402318c6324f21b669aa0d1ce6ded8e323e 102304 |
|
12-Jan-2004 |
nd |
make REMOTE_PORT available
PR: 25772 |
26a4456dd6f1a5d7d7fff766551461a578687c4a 102135 |
|
01-Jan-2004 |
nd |
update license to 2004. |
e15badb2b4b68884b3cf303dd1695a719ca12c38 101744 |
|
10-Nov-2003 |
nd |
style |
bbe046d7cbb950ab3e372e4119ae001a5fe52ed4 101556 |
|
24-Oct-2003 |
striker |
Fold in the CAN-2003-0542 regex patch. |
7aa13f4e447e1b3d0ef45b6cc03cfb7f4ea9dab2 101357 |
|
30-Sep-2003 |
martin |
Match type of both arguments (get rid of compiler warning) in x ? y : z expression |
1fbf6ba0f5207e6637b49f9a9dfcc779bbe952a9 101154 |
|
03-Sep-2003 |
trawick |
switch to APR 1.0 API (which is still in flux)
because of the changes to the argument lists of apr_mmap_dup and apr_socket_create,
2.1-dev won't build with apr and apr-util's 0.9 branch anymore |
ffab3d4df54e15de88dfa1fe733c3ea649a396d0 101029 |
|
20-Aug-2003 |
nd |
style |
81ef3d132c8f335006465f297c42319f8734825d 101028 |
|
20-Aug-2003 |
nd |
allow [T=...] forced types to get expanded.
PR: 14223 |
d49b71b1197b169a2f0cc485bcb529fbfa4f90af 101027 |
|
20-Aug-2003 |
nd |
cleanup apply_rewrite_rule function.
Improve readablity (? ;-) and efficiency. |
0d7d2102cc5580c8999d0380a5d88fb0c2973db5 101026 |
|
19-Aug-2003 |
nd |
rename the exp_ctx to rewrite_ctx and widen its scope. That makes
a lot of things easier :) |
2a031fcb5d30949104d410a4e309d3b75b1dd744 101025 |
|
19-Aug-2003 |
nd |
stressing the notes table is not necessary. |
925932040ee7871b6a2418edc3b4b6f4378bbe2a 101012 |
|
19-Aug-2003 |
nd |
Catch an edge case, where strange subsequent RewriteRules
could lead to a 400 (Bad Request) response. Example:
<Directory /path>
RewriteEngine on
RewriteBase /
RewriteRule foo /bar
RewriteRule bar baz
</Directory> |
73291de2e17c97d3549f2f8aa085ca43d27e108a 101011 |
|
19-Aug-2003 |
nd |
Fix LA-U and LA-F lookups in directory context. Previously
the current rewrite state was just used as lookup path, which lead to
strange and often useless results.
Related to PR 8493. |
94f5f11f92e8c8aba817303909cdaab373a3e4d8 101010 |
|
18-Aug-2003 |
nd |
doh. the permission thing is independent from rewrite log |
ca325eba0c5513ee48050970b9e3ce8fca340949 101009 |
|
18-Aug-2003 |
nd |
use a context structure to hold expansion information. This makes some
things easier (in future commits :-) |
586f7590583349c828aa2340ce7f3918484f6171 100914 |
|
06-Aug-2003 |
nd |
remove superfluous (heya Cliff) space from log string. |
fd99717a52886f7d9f9f73be2080d3fdc2ec4bd6 100913 |
|
06-Aug-2003 |
nd |
hook mimetype-forcing into fixup/LAST. This leads to consistent
behaviour (server context vs. directory context), overrides all statically
configured mime types and doesn't clobber multiviews any longer. |
6f1c02d9bb17d5913d1b2aa650f2c0b5493c0749 100911 |
|
05-Aug-2003 |
nd |
add a comment for future editors
no code change. |
24c9e07dd99e06742f08dcba6d2a5d8cf9d1948b 100907 |
|
05-Aug-2003 |
nd |
There are different kinds of people:
- the good English speaking people
- the bad English speaking people
- and the ugly ones, who should not even try to do so
I think, I'm one of the latter group.
Thanks to Thom May :) |
3542bc03182b5a2754662f87dbd5845aa0bc62ce 100906 |
|
05-Aug-2003 |
nd |
word smithing / grammar
Submitted by: Jeff Trawick |
4c7fbb574410e7fc2e7e77026c46601bad1cfddd 100905 |
|
05-Aug-2003 |
nd |
make clear, that we *know* the RewriteLog directive, even if we
don't support it. Thanks to kess for pointing this out. |
d390688237327420bf2fb47465f82b6fa48e2e5d 100904 |
|
05-Aug-2003 |
nd |
introduce REWRITELOG_DISABLED compiler option, which -- if supplied --
strips all logging code from mod_rewrite. This is meant as a performance
improvement for production sites, not as a recommended compiler option
for public distributions.
At least conceptionally this was
Reviewed by: Justin Erenkrantz, Mads Toftum, Thom May,
David Burry <dburry@tagnet.org> |
63f5532d97b12303cbab8ee3c785ebf1e760cc00 100902 |
|
05-Aug-2003 |
nd |
remove unneccessary assignment |
f9f8474ebcfaf8bf01ab58ed46c97fbdadf92151 100901 |
|
04-Aug-2003 |
nd |
improve expansion performance.
If we have only small expansions (like just one variable - often used
in map keys or the like), don't stress the pool with allocating
memory for the linked result pointer list. This list can be safely
stored on the stack. |
d009dcad9b4f3db3b9a1ae0f0c0df9d404d7f662 100895 |
|
03-Aug-2003 |
nd |
cleanup compare_lexicography function.
- improve readability
- make sure that unsigned chars are compared
- use apr_size_t for string lengths |
df39d54f18d84eaa208a613c032f60402bf140c6 100894 |
|
03-Aug-2003 |
nd |
inline some functions for faster processing. |
ab88299da6b1ab66ae36cf38abeb3fadef49a5ff 100893 |
|
03-Aug-2003 |
nd |
subreq_ok *is* a macro. |
3cda3df9e1c7c3f6a027eed6f24c1347b8107b57 100892 |
|
03-Aug-2003 |
nd |
cleanup the add_cookie function a bit.
- the if(s) check is superfluid. s is guaranteed to be non-NULL
(except for out of memory)
- strtok as late as possible to save some cycles. |
5cc0f041a1cb6a9ae9fb4ba3c6e5f90be363ed3b 100891 |
|
03-Aug-2003 |
nd |
incorporate the add_env_variable function in do_expand_env.
I see no real reason to use an extra function call here (other than
decreasing performance :) |
ed86abbff72c2a08cf32940cf160cbd025770d64 100890 |
|
03-Aug-2003 |
nd |
style |
22cbae032dd97514640bca079e4c92da8ff3f963 100877 |
|
31-Jul-2003 |
nd |
gcc doesn't catch the logic and throws a warning about uninitialized
fname. Get a rid of it. |
a0328ffd579ae9bb557336c36bc48d3da1a9bcfa 100870 |
|
30-Jul-2003 |
nd |
remove some unnecessary memory operations |
4cbd4cbabd798afc208ea708ea815d50799048ba 100869 |
|
30-Jul-2003 |
nd |
remove artifical limitation of number of env and cookie flags |
d64b2d41992ba0bebfe38183eade7dd865103c0c 100862 |
|
30-Jul-2003 |
nd |
cleanup RewriteCond evaluation.
- avoid unnecessary memory operations
- parse non-regex patterns at configuration time, which
- gives the ability to throw a useful warning, where [NC] is not supported
- and speeds up processing at runtime
- allow [NC] for simple comparison pattern (=)
- improve readability |
4ce381bf76e87643b237d7f0d6ecc36f215705a4 100860 |
|
30-Jul-2003 |
nd |
Rewritemap improvement:
- map designations are now case insensitive (txt: rNd: PRG: INt:)
- maps may be relative to serverroot, which appears to be _very_
helpful |
620f66ebcf368d66354ca194f6506ea008022b8e 100857 |
|
30-Jul-2003 |
nd |
cleanup parseargline function to be more efficient and better readable.
It's a quite strange function. I think we can drop it at all. Opinions
anywhere? |
a641e23197e136bf6944974baaddfa91d2aefb0c 100855 |
|
30-Jul-2003 |
nd |
cleanup expand_tildepath function to use the pool and be more
readable. |
999460ae225e0d2dd91c75ec48e0c847a86e6ea7 100853 |
|
29-Jul-2003 |
nd |
minor optimization: the bracket search functions just search
for curly brackets, so there's no need to supply that every
time again. |
fa72e29f3fb2ba6e83ee013ad935d2e79fe92477 100851 |
|
29-Jul-2003 |
nd |
this was a two-tiered commit for better diffs.
Now bust the old function. |
b917cc55afedee6ed95b564644475115e4d243b2 100850 |
|
29-Jul-2003 |
nd |
speed up variable lookup. It's expected to be faster
than a hash (and the previous if-else chain, of course).
This also reverts the wrong patch, committed in r1.151 |
5c76205ce580dbac0020fbba74bcf211de3923d3 100833 |
|
29-Jul-2003 |
nd |
cause a lookup failure in external rewrite maps if
the key contains a newline.
PR: 14453
Submitted originally by: Cedric Gavage <cedric.gavage@unixtech.be> |
83f7bc975ae32aab57c39f7895c5f17cab9e1f2a 100832 |
|
29-Jul-2003 |
nd |
minor optimizations in lookup_map_program function.
- make it compile time configurable, how long
a response from a rewrite map prg may be.
- avoid unnecessary memory operations |
751481145a7ad997da576b7a6bd206620bdf4f13 100831 |
|
29-Jul-2003 |
nd |
- style & readability
- procattr_cmd_type_set was called twice. shoot one. |
1aa3c69ce63e6d7cef558d1b756f4caa504bf43e 100830 |
|
29-Jul-2003 |
nd |
integrate the random functions into the select_random_value_part
function. This is the only place where they are needed. It is
not necessary to add extra cycles for function calls here. |
e620990c617964d4ee2efded83eb6d89395af016 100829 |
|
29-Jul-2003 |
nd |
cleanup fully_qualify_uri function |
db8569d06bd29d4626aff7cf007512fa7f976dea 100828 |
|
28-Jul-2003 |
nd |
cleanup splitout_queryargs function.
- don't compute strlen more than one time
- use ap_strchr instead of strchr |
6c2b27617464b142c43f36aa2fc73248eaa9c183 100827 |
|
28-Jul-2003 |
nd |
cleanup rewritelog function.
- shorten the code
- improve efficiency and readability
- get a rid of fixed buffers
- use %pp format string for pointers |
5fb2e8564729922524cd011b11e2d4f5d76f5a8d 100818 |
|
28-Jul-2003 |
nd |
allow piped rewrite logs to be relative to serverroot |
fb58713e8301dcea216d4491656b7d58558b0c82 100814 |
|
28-Jul-2003 |
nd |
exit(1) should never occur in any module. Stay away from it. |
bf2a6206e3e28f75953d952dfdd9d470c7ec5f20 100813 |
|
28-Jul-2003 |
nd |
a long time ago ...
REWRITELOCK_MODE wasn't used anymore for ages. In the meantime it defined
the mode of the rewritelog (sic!) file. So fix the misnaming and
use constants for mode and open flags. |
34ca6d2da02bdce644726cbdccdf12e19f390fbd 100810 |
|
28-Jul-2003 |
nd |
cleanup current_logtime function.
use sizeof where sizeof should be used.
don't compute strlen again and again (use the supplied value
from apr_strftime instead). |
9a3f664cc3a1b9f76c438e0fd0568950faea67d3 100809 |
|
28-Jul-2003 |
nd |
add the ability to change the maximum txt:map line length at
compile time without patching the code |
c9f16323abb936a13be8999a2873ce225473409b 100801 |
|
28-Jul-2003 |
nd |
Get a rid of the oversized cache.
The new map-cache consists of a simple two-tiered apr_hash structure.
cachep->maps contains entries for each map, which point to a hash with
the actual values (map->entries).
Each map->entries hash lives in a subpool of cachep->pool.
The mtime is stored per map and if the map expires, we just clear
map->pool and create a fresh map->entries hash structure.
This removes a big chunk of code from mod_rewrite, improves readability and
even the memory footprint of the cache. |
1e108e50893fa8b998ff1bb5dcc79912bba0d307 100800 |
|
27-Jul-2003 |
nd |
cleanup the select_random_value_part function.
improve efficiency and readabilty. |
307b20b0e68c01acf8796d81dd4cff0874435ee1 100798 |
|
27-Jul-2003 |
nd |
cleanup lookup_map_dbmfile function.
improve efficiency and readablity. |
7d830d161da06a5c4f94a508811e85ee22940be6 100797 |
|
27-Jul-2003 |
nd |
cleanup lookup_map_txtfile function.
- improve efficiency
- make it better readable |
264613838247f185570a5ffeda7f202726e94f31 100796 |
|
27-Jul-2003 |
nd |
avoid unnecessary memory operations |
3b74f9665d3d0da3052312cc45b6ab5c8c1b4113 100795 |
|
27-Jul-2003 |
nd |
cleanup lookup_map function.
- use switch instead of if-else chain
- collapse txt/rnd code, which is essentially the same
- make it better readable at all. |
02d296165f00f6496f2b99204d1aab0fed723846 100794 |
|
27-Jul-2003 |
nd |
rewritemaps are identified by name. Store 'em in a hash rather than
an array. This is more naturally, efficient (mostly) and better
readable.
Leave deep indentations for now (better diff). |
de58ed837f6303d42c8c0dd01e14a44897c92451 100793 |
|
26-Jul-2003 |
nd |
re-add missing headers |
2c3d2dbd349611a7ca533df1f883aaf6d96fa2ff 100792 |
|
26-Jul-2003 |
nd |
oof. Strip all non-public stuff from mod_rewrite.h and
reorder the code in mod_rewrite.c in order to get a rid of
the forward declaration. Cleaned up the comments as well.
No real code change, but a quite big diff ... |
c6c1f4eda9567d42f00ca4927ce77528b2c92a72 100789 |
|
25-Jul-2003 |
nd |
remove outdated and more confusing than helping comment.
no code change. |
7cb3805798a456139cb4e5ab77ea707deedc7d23 100784 |
|
25-Jul-2003 |
nd |
avoid unnecessary memory operation |
2b63013ea33a56d781db018d4ae36b41110537ff 100783 |
|
25-Jul-2003 |
nd |
remove more unnecessary strlen() operations |
a09d9e30f86a8db888af32f060dd4afaa7ca7931 100782 |
|
25-Jul-2003 |
nd |
remove another fixed buffer from the stack |
8bd433ba9eb5fb246639860d9b3ee7c495628e15 100780 |
|
25-Jul-2003 |
nd |
indentation. no code change |
d72065d0d2853d9d55373097b7a363b83998451b 100776 |
|
24-Jul-2003 |
nd |
remove useless post increment. |
7117fe78b74378f03671b25684b64d255f3c3499 100775 |
|
24-Jul-2003 |
nd |
remove more variables from the stack and
increase readability. |
2d0148545a72bbc56f89a9db0fd519bbf82376b4 100774 |
|
24-Jul-2003 |
nd |
minor optimization.
this avoids a variable on stack and some internal
pointer operations. |
90012d9e120da1accf6d4dab47d094cb2953b6df 100773 |
|
24-Jul-2003 |
nd |
remove outdated comments about different regex libs |
9d46ddfd32abac55f8edf0c9a55b2476db9173a6 100772 |
|
24-Jul-2003 |
nd |
optimization/cleanup.
The generic flagparser (read: lexer) for RewriteRules and RewriteConds
does the same except for one function call.
Collapse these to functions to one and make the result more
readable. |
fc0e39b58d9ebd19c4d5cba5e9d535af2b756b78 100744 |
|
23-Jul-2003 |
nd |
don't compute the strlen of dconf->directory three times
Submitted by: Justin |
e29fad057ec5ebc0045d5974728313049a7680ad 100681 |
|
18-Jul-2003 |
nd |
when prefixing document root, use the core translator instead
of baking our own. The core function is much better maintained
and probably more safe.
Additionally this removes just another fixed buffer :) |
8276fb450793acaf80dbfef572a6d68420b56505 100676 |
|
17-Jul-2003 |
nd |
step two: get a rid of the old do_expand function. |
e17b664ecc183d3dce1c6034851e498f89229a17 100675 |
|
17-Jul-2003 |
nd |
optimization; rewrite the do_expand function in order to:
+ give it a better interface
+ get a rid of most of the fixed stack buffers and then
+ no longer limit rewritten uris, expanded variables etc to
2k
+ make it better readable and understandable at all.
This is a two-tiered commit for better diffs. |
7c8eabdb1bdd25d6a77b546569f380034f55c102 100652 |
|
16-Jul-2003 |
nd |
add some linebreaks and reorder case alphabetically for better
readability. No code changes. |
7bfb60cc1a60c889c6a836d62348be42fc5d547e 100651 |
|
16-Jul-2003 |
nd |
optimization: no need to use the pool here. This is
obviously a static value. |
24d71d51f4b3e21f0e075767b77380ab67c513e0 100650 |
|
16-Jul-2003 |
nd |
optimization:
- add comment about what subst_prefix_path function does
- reduce the use of fixed buffers
- get a rid of unnecessary memory operations |
0d4735261760d1526f942577e0bd8db3edee9b9e 100645 |
|
16-Jul-2003 |
nd |
optimization: speed up ruleflag parsing. |
04776f38f2c7e6c005f84f0bc587e328b35e6374 100644 |
|
16-Jul-2003 |
nd |
optimization: no need to search linear for headers.
apr_table_get should be more efficient nearly always. |
dd01540ada755829d0138f1ca7f4f7094e9154f4 100643 |
|
16-Jul-2003 |
nd |
optimization: rewrite reduce_uri function:
get a rid of static buffers and unnecessary memory operations |
5259ba24286df14fb89be643f234a4dc9613a071 100637 |
|
15-Jul-2003 |
nd |
minor optimization. No need to use a function overhead here. |
0641d66f256ec02c7b0976d9c9e116f4b953b187 100634 |
|
15-Jul-2003 |
rederpj |
Namespace protected the table label. |
9556fb65eecaa55b866b413d5e262cd54be88f21 100632 |
|
15-Jul-2003 |
nd |
Ignore RewriteRules in .htaccess files if the directory
containing the .htaccess file is requested without a trailing slash.
PR: 20195 |
99c475e760470ab8ca3d17da82a2f6158466f918 100615 |
|
14-Jul-2003 |
rederpj |
Remove some extraneous code committed as part of the fix for 13946 pointed
out by Andre Malo. [Paul J. Reder] |
c2d16e88f6a997b9174b5596db5e03cee5f46a8b 100600 |
|
14-Jul-2003 |
rederpj |
mod_rewrite: fix a problem in the proxy support of mod_rewrite. The broken
code was inserting multiple "proxy:" fields in the rewritten URIs.
[Submitted by: Eider Oliveira <eider@bol.com.br>]
[Updated and reviewed by: Paul J. Reder] |
a3954060338ccebc73071e89ac936d4ec15ab352 100189 |
|
07-Jun-2003 |
trawick |
Unix: Handle permissions settings for flock-based mutexes in
unixd_set_global|proc_mutex_perms(). Allow the functions to be
called for any type of mutex.
This resolves a fatal problem with mod_rewrite on systems where
APR uses flock-based mutex.
It simplifies mod_ssl as well, which had special logic to perform
the chown(). It fixed an init error with mod_ssl on systems where
flock is used when the user had no SSLMutex directive.
The Unix MPMs continue to call unixd_set_global|proc_mutex_perms()
only for SysV sems. There is no permission problem with flock-based
accept mutexes since the child init logic for the MPMs is done
prior to switching identity.
PR: 20312 |
3afe511e52d7091898e7294fe9eb6da61c43cd93 100187 |
|
07-Jun-2003 |
trawick |
mod_rewrite: Perform child initialization on the rewrite log lock.
This fixes a log corruption issue when flock-based serialization
is used (e.g., FreeBSD). |
532a5de31e1a9732da4923f88e4931d0724ebe72 99902 |
|
18-May-2003 |
nd |
fix LA-U lookaheads in directory context.
I'm wondering if this ever worked ...
PR: 8493 (related to) |
9edfd91257fab9223dca2489818f9c41b268201a 99704 |
|
04-May-2003 |
nd |
Make sure that mod_rewrite's type checker is evaluated before mod_mime.
PR: 19626 |
7a01bcd2d59be7ec9ce55701c58054fa1c0bb5b6 99032 |
|
20-Mar-2003 |
wrowe |
SECURITY: Eliminated leaks of several file descriptors to child
processes, such as CGI scripts.
PR: 17206
Submitted by: Christian Kratzer <ck@cksoft.de>, Bjoern A. Zeeb <bz@zabbadoz.net>
Reviewed by: Joe Orton, Will Rowe |
613d41acb9a6aab66a0e38f1fe0f03c5ca6f3fb5 98863 |
|
01-Mar-2003 |
nd |
Prevent endless loops of internal redirects in mod_rewrite by
aborting after exceeding a limit of internal redirects. The
limit defaults to 10 and can be changed using the RewriteOptions
directive with the new MaxRedirects=n argument.
(The latter required some restructuring of the RewriteOptions
evaluation code).
(Documentation patch follows asap)
PR: 17462 |
402d23baca89e8c4fcb4e52ad8b2d66a6904baae 98840 |
|
28-Feb-2003 |
trawick |
mod_rewrite: Fix some problems reporting errors with mapping
programs (RewriteMap prg:/something).
the wrong field was specified when trying to log the name of
the program that couldn't be started
recent APR features used to provide better error reporting
on systems where apr_proc_create() uses fork() |
edcf63bfe6b8d28907c7d9708bf2adfdb781790b 98808 |
|
27-Feb-2003 |
nd |
Fix mod_rewrite's abs_URI handling.
- uris were partially not correctly escaped (in particular:
ldap, news, mailto)
- not all uri schemes contain an authority component (//)
- add nntp:// scheme
- don't add a query string (and drop r->args) if it's not
http or mailto scheme
- be more efficient (think so) |
c0bd3354ad52bfd61490bee1c994452eb541de96 98792 |
|
25-Feb-2003 |
trawick |
fix some const-ness problems which break the compile with the native
compiler for AIX (and probably HP-UX and Tru64 as well, since they
tend to be picky too) |
1a8839df376c4eb0ed05159f36a12b180daeb571 98783 |
|
24-Feb-2003 |
nd |
This is part three.
It fixes the misunderstandings between local URL paths and local
system paths. Note that mod_rewrite handles _both_.
Fixed also some comments to make the explanations more clear. |
64583cc2b939d094828aa4a17fdfa9b2573268b6 98782 |
|
24-Feb-2003 |
nd |
This is part two.
It fixes the prefix_stat function. (which does a stat call on the first
path segment). This function was still tailored for unix systems only.
It should work on other systems as well now. |
4dc03ab07d46e501a7f16a19985060113b4f79e9 98781 |
|
24-Feb-2003 |
nd |
Well, here comes a major fix. I've splitted the patch into 3 parts
for better understanding, what I'm doing there. This is part one.
mod_rewrite appears to be very broken in several cases, especially on
non-unix systems. However, let's start with fixing the path handling, since
it's _the_ major PITA, e.g. on win32.
This part removes _unused_ code. The condition is never true, because
"A local rewrite in per-directory context" was caught much earlier.
I'd guess this piece of code was c&p accidentally... |
36ff3c6abaa97d781035df732f3ff7bf0b898965 98773 |
|
23-Feb-2003 |
nd |
guess, what happens, when l == 0
theoretical case, maybe ... |
2fe4a98933d7099460e8c04c3bb5396c93e5b4ac 98769 |
|
23-Feb-2003 |
nd |
uh, oh. Fix possible 1-byte buffer overflow. |
65aeb4185d6a108b19c27b89f311dc57dab62239 98707 |
|
18-Feb-2003 |
nd |
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 |
7c323780b34478f9a2ed8e1543395b98697d5e34 98669 |
|
15-Feb-2003 |
nd |
catch some style issues. No code changes. |
33bdcae1f7a1a65e351dda2a766a0cf28b1e695d 98573 |
|
03-Feb-2003 |
nd |
finished that boring job:
update license to 2003.
Happy New Year! ;-)) |
10493f31feeaf50ee1382a3de021509204594576 98122 |
|
29-Dec-2002 |
nd |
allow RewriteEngine Off even if Options -FollowSymlinks is set.
PR: 12395
Reviewed by: Justin Erenkrantz |
a6f48cc01ab8f5377e570c61826dcdfc36741936 97106 |
|
04-Oct-2002 |
trawick |
Fix a bug with dbm rewrite maps which caused the wrong value to
be used when the key was not found in the dbm.
apr_dbm_fetch() returns APR_SUCCESS as long as there was no I/O
error. mod_rewrite needed to look further to see if the key
was actually found.
PR 13204 |
b5956f4eac49e2f45f3af2a825ec8b69a08c803c 96585 |
|
30-Aug-2002 |
jerenkrantz |
The style police just get really annoyed with this file in general.
(No code changes) |
6c7a9334b39a9879e5f5bb3ae819c78d5bf39b62 96583 |
|
30-Aug-2002 |
trawick |
fix a type mismatch |
6deb8bcfb8511ac38243a8274fc589842841b398 96581 |
|
30-Aug-2002 |
ianh |
new option 'path' to the cookie
PR: 12172
Submitted by: apachecvslog@robcromwell.com (Rob Cromwell) |
6d2f58c69522b2b26154515b79b37fda839541cc 96579 |
|
30-Aug-2002 |
ianh |
just saw this bug
PR: 12181 |
e7a922f60c355b5ae46076f3611b456e994266c2 96578 |
|
30-Aug-2002 |
ianh |
shot in the arm by the style police while trying to escape |
49bbbd1939208be54a3eb00b95e61d90d180a606 96577 |
|
30-Aug-2002 |
ianh |
set expiry time correctly.
set Cookie on err_headers_out, and ensure it is only set once.
PR: 12132
Submitted by: apachecvslog@robcromwell.com (Rob Cromwell) |
4426db57dabf111cc28bd7e552b9db4fedd68bb6 96502 |
|
23-Aug-2002 |
trawick |
fix breakage of dbm maps which was introduced in the previous commit |
0bbb249eafe9ef9508821f0ef58e7440625ecd62 96493 |
|
23-Aug-2002 |
trawick |
add the ability to specify the dbm type (e.g., gdbm, ndbm) for
dbm rewrite maps
use dbm:filename for the default type
use dbm=TYPE:filename for a non-default type |
61afed048a4d67ed923d52e5c865c0f10a8e9e73 96478 |
|
21-Aug-2002 |
trawick |
Change mod_rewrite to use apr-util's dbm support for dbm rewrite
maps.
For now, the SDBM dbm flavor is always used. It won't be compatible
with dbm rewrite maps built for Apache 1.3 until apr-util supports
ndbm and mod_rewrite is changed to prefer ndbm over the built-in
sdbm.
PR: 10644 |
7a23067e782dd5612d4d4b539906e1733b664df7 96475 |
|
21-Aug-2002 |
jwoolley |
Fix a problem whereby RewriteMap prg:'s would get out of sync due to
the inappropriate use of nonblocking reads. Also get rid of the stderr
altogether since mod_rewrite never uses it.
PR: 9534 |
58fd79b56eb624bf011772994e9761d3c2e228c1 95993 |
|
10-Jul-2002 |
orlikowski |
Continue the Bill Rowe apr_size_t crusade. |
854cc4d3451547c2359c27870a3c354ad385a49b 95840 |
|
22-Jun-2002 |
ianh |
new configuration option for mod_rewrite to set cookies.
configuration is like the following
RewriteRule (.*) - [CO=<cookiename>:$1:<domain>:<expiry in minutes>]
Submitted by: Brian Degenhardt <bmd@mp3.com>
Reviewed by: Ian Holsman |
a946a7e607c21cf6068e7380d7e81cc2bf027913 95611 |
|
11-Jun-2002 |
trawick |
Fix some casting in mod_rewrite which broke random maps.
PR: 9770
Submitted by: Allan Edwards, Greg Ames, Jeff Trawick |
fe6842fdf9edddd02ac5f6a0105c74d9cd3a8506 95587 |
|
09-Jun-2002 |
wrowe |
Well the wrappers work out well... nice to be able to put off committing
these API changes until the evening ;) |
745c30b493b8bdba035ceef0cd892e25f3ff172f 95375 |
|
30-May-2002 |
jwoolley |
Thanks Ryan for cleaning up after my laziness. :) Here are just a few
last little changes. ->datafile should be initialized... but doing so
brings up the fact that the check in run_rewritemap_programs() was
expecting ->datafile to have a string attached to it. For clarity,
let's just use argv[0] there. And since we've reinstated the use of
->checkfile, we no longer need that extra apr_stat() I hacked in,
so let's get rid of it. |
a1c03a1ceca291ab5042259c639fafe8ccae556a 95372 |
|
30-May-2002 |
rbb |
Tokenize the arguments for rewrite programs during config parsing, and
just use that information later. I was having a problem with prg
directives with arguments failing the configuration. The problem was
a call to stat, which was being passed the program name and the arguments.
Obviously, the arguments were messing up the call to stat. This gets the
test suite working for me again. |
c6edcf04010c354eef81d0b9c02aa917965637a2 95337 |
|
29-May-2002 |
jwoolley |
Error out a bit more nicely if the RewriteMap prg: is not found. We
can't just apr_stat in the first init round because we haven't run
apr_tokenize_to_argv() yet, and it would be a relatively ugly hack to run
it twice just for that. Well, I suppose we could store the argv in the
rewritemap structure, but ... nah. With this, we shutdown (cleanly, as
opposed to the old exit(1) method) if we go to execute a rewritemap
and discover it doesn't exist, and log a nice descriptive message at the
end of the error_log. |
7eb55be5bcc75f2acf789aeca38d88a9c75d001e 95334 |
|
29-May-2002 |
jwoolley |
Fix RewriteMap prg:'s that have command-line args.
PR: 8464
Submitted by: James Tait <JTait@wyrddreams.demon.co.uk> |
73de26bb8b60c51d69f8463fa2400791163901d9 95189 |
|
20-May-2002 |
jwoolley |
propagate gregames' change to the other callers of that function |
677db7bc605e2e9a809689d7dccbfe7c2c6caec1 95188 |
|
20-May-2002 |
gregames |
don't try to set permissions on the rewrite_log_lock unless it is a SysV
sem |
1cde33c7e2019830f8fb3224e01649305583916e 95150 |
|
17-May-2002 |
trawick |
stop using APLOG_NOERRNO in calls to ap_log_[pr]error() |
ff5151a89606f65079de6cabbb6707927c219efc 94981 |
|
07-May-2002 |
jerenkrantz |
It isn't a fatal condition if there is no lockfile name, so switch from
APR_EINVAL to APR_SUCCESS. (rewritelock_remove already returns SUCCESS in
this case.) |
679b2c6e96c3d71fdf843ebbe51b7d2de512921c 94972 |
|
06-May-2002 |
aaron |
Protect us from this dirty hack that gets SysV Sem working again
on mod_rewrite. This, along with the original usage of a unix-only
function in mod_rewrite, is a temporary stopgap measure designed only
to workaround limitations in APR's handling of permission attributes.
It shall be removed as soon as that interface is improved. |
031f1eea4d5ae32771db6664989aecc2729f9511 94969 |
|
06-May-2002 |
aaron |
Fix mod_rewrite hang when APR uses SysV Semaphores. Before we were
silently failing when locking/unlocking the mutex, since httpd
child processes didn't have permissions to access the root-created
semaphore.
PR: 8143 |
acd56a1034f81b09ba534e4b0c4562976ac54c3d 94967 |
|
06-May-2002 |
aaron |
Add some error checking in mod_rewrite for the mutex lock/unlock calls. |
beceadc468d2333c80fd431a57ff4cfec32de53b 94961 |
|
06-May-2002 |
trawick |
fix the type of the pointer returned by the hash lookup |
2ae7ad6f58b7e3188ed4bd375a8930808529ba71 94939 |
|
06-May-2002 |
jwoolley |
Added an optional function (ap_register_rewrite_mapfunc) which allows
third-party modules to extend mod_rewrite's "int:" internal RewriteMap
functionality.
Concept by: Tahiry Ramanamampanoharana <nomentsoa@hotmail.com> |
d8ba998ee14218a3bafddb61646052e94bdd2b18 94752 |
|
22-Apr-2002 |
striker |
Update for APR rename of apr_get_groupname to apr_group_name_get.
Submitted by: Thom May <thom@planetarytramp.net> |
35b9e4d5f3452cad4b3bec6829ce87a5ce9e9227 94631 |
|
13-Apr-2002 |
striker |
Adapt to the rename of apr_explode_localtime to apr_time_exp_lt in APR.
Submitted by: Thom May <thom@planetarytramp.net> |
cba0728e3535ee87e89cdb3cb54ce91eda18f6cc 94465 |
|
05-Apr-2002 |
aaron |
Update mod_rewrite to use the new APR global mutex type. |
e0d102c882a7ed34d3eec24b36da49f097066a36 94056 |
|
20-Mar-2002 |
stoddard |
Commit 1 of 2 to:
1. rename ap_rset_content_type to ap_set_content_type
2. reverse the arguments on the call to aligh with ap_set_content_length |
e9dacb49354baa7346837faad335f27caa7fe1ee 94027 |
|
20-Mar-2002 |
stoddard |
First commit to introduce accessor function to set r->content_type.. |
32c4bc04f89b16521718145dc731f750144d7b38 93965 |
|
16-Mar-2002 |
wrowe |
Eliminate potential ap_server_root_relative segfaults, with the input
of Jeff Trawick's style changes to the first patches. Doesn't include
the fixes to ssl [more complex], and we won't trap errors that involve
ap_serverroot, since we presume that was normalized on the way in.
Therefore, testing ap_server_root_relative(DEFAULT_FOO) cases
should never become necessary. |
d521bfef0e1a65993d5e302628ac68a2c91a195f 93940 |
|
14-Mar-2002 |
trawick |
deal with the rename of kill_after_timeout to APR_KILL_AFTER_TIMEOUT |
bc8fd1b0b1afdf89b8d28eefa8cd74e26ba97986 93918 |
|
13-Mar-2002 |
fielding |
Update our copyright for this year. |
01e8aca9299a0b872414c24c8b7724d6f88ae665 93733 |
|
06-Mar-2002 |
ianh |
apr-utils rename apr_ansi_time_to_apr_time and
apr_exploded_time_t.
PR:
Obtained from:
Submitted by: Thom May <thom@planetarytramp.net>
Reviewed by: Ian Holsman |
421dc1d123c9adda60e024f93fb614bfada8b9e5 93587 |
|
27-Feb-2002 |
wrowe |
Whoh boy that's rough... We sometimes like to answer SIGHUP in the
parent process, don't we?
This -was- post-fork() in 1.3, but with the massive restructuring,
we inadvertantly now whack the parent process. |
ad8ace2109e476d091c6bcabcfe403dff978b135 93467 |
|
18-Feb-2002 |
brianp |
Updated the mapper lock to use apr_global_mutex_t instead
of apr_proc_mutex_t |
c411d7720ad04070be1358ba85e287cb974a13b2 93445 |
|
16-Feb-2002 |
brianp |
Converted the rewrite mapper lock to the new lock API |
2974def484072f2dade1d5b0ae566d5fd5fcafc8 93073 |
|
29-Jan-2002 |
trawick |
const is nice |
6bfd3fdd8ec20299d843ba57982716148615362e 93072 |
|
29-Jan-2002 |
martin |
No need to use strcpy() where a ptr assignment is ok |
6b6083e6518007139257ee449c2af3032d2437d0 92827 |
|
11-Jan-2002 |
trawick |
Fix a segfault in mod_rewrite's logging code caused by passing the
wrong config to ap_get_remote_host(). |
65f272685f3ca92e45841d95c2b5fa6219ad9b5c 92775 |
|
08-Jan-2002 |
bnicholes |
Code updates to allow Mod_Rewrite and Mod_Auth_DBM to build on NetWare
Submitted by: G�nter Knauf <gk@gknw.de> |
612b906e8dd17ebb1704b6663caf5d9ab321f971 92653 |
|
30-Dec-2001 |
trawick |
handle the disappearance of apr_lock_create_np() and
apr_proc_mutex_create_np() and the new parameter to
apr_lock_create() and apr_proc_mutex_create() |
9d0665da83d1e22c0ea0e5f6f940f70f75bf5237 92144 |
|
23-Nov-2001 |
ianh |
Modify post_config hook so that it can return a error,
causing the server not to start.
previous method was to call exit(1) which would not fail
gracefully
PR:
Obtained from:
Submitted by:
Reviewed by: (Idea only Jeff Trawick) |
0681dbf6d2319f0fce65f768ad50ddf8d1f84445 92033 |
|
19-Nov-2001 |
coar |
Typo fixit |
c95f419952af464c35f32d5c5754ad56aec754eb 91941 |
|
14-Nov-2001 |
aaron |
Convert mod_rewrite's INTRAPROCESS lock to the newly supported
apr_thread_mutex_t type lock. Passes all rewrite.t tests. |
2002cec7a51ecd174b57ae03b7412a6cbe7cb6c7 91940 |
|
14-Nov-2001 |
aaron |
Convert tabs to spaces, and a couple other style changes. No functional
changes. I checked with the rewrite.t perl-framework test to make sure
it still passes. |
d4f351074a8f7af5e41aa0a70410816436608e3d 91860 |
|
11-Nov-2001 |
ianh |
This patch changes the apr_table_elts macro so that it provides
access to the internals of an apr_table_t via a const pointer
instead of the current non-const pointer.
Submitted by: Brian Pane <BPane@pacbell.net>
Reviewed by: Ian Holsman |
42a81ba69912a24fd26efd0fb9d6f280fa869efe 91623 |
|
21-Oct-2001 |
wrowe |
Reading commit log messages can be very helpful for noting inconsistent
comments... no code is hurt in this commit |
631e14d82e28b71d36ea7bcda029af8fb50cbbc0 91622 |
|
21-Oct-2001 |
wrowe |
The test of filename[0] == '/' is very evil ;)
More patches required to;
1. use apr_filepath_merge rather than apr_pstrcat for creating proper
and canonical paths.
2. untangle the proxy: fooness that no longer works in directory_walk. |
904d7bf799c6216beb34519463596b4fce630308 91612 |
|
21-Oct-2001 |
wrowe |
Thread saftey lock for mod_rewrite's cache... I'm sure others will have
some 'better ideas' but this will work for now.
Submitted by: Brian Pane <bpane@pacbell.net> |
b29f87f4b6c6886a04dccc296177a7033f70dfed 90173 |
|
15-Aug-2001 |
trawick |
fix some homophonic issues in comments, as well as some
mispelings found near "its" or "it's"
(helping our 4th grader with homework, couldn't help but
grep) |
f947ecf8a772cbfcce0315feb68ad88e84299ad0 90001 |
|
07-Aug-2001 |
trawick |
mod_rewrite: Fix the line ending on some non-Unix systems for
messages written to the rewrite log.
Submitted by: Richard Labennett <rlabenn@us.ibm.com>
Reviewed by: Jeff Trawick |
69497a7b3c4e4ea11bdbba39beff90bdacf89930 89711 |
|
25-Jul-2001 |
wrowe |
Some cast magic for intentional float/int transformations. |
e01fb9397e26493bba72dfd45fcaaaa110800fc6 89600 |
|
18-Jul-2001 |
wrowe |
Remove last public vestigages of APR_INHERIT |
b6271d6b081093ed54a91eb0a3ca7c7a744b7ead 89561 |
|
16-Jul-2001 |
wrowe |
Obvious files that need inheritance, correct me if I'm wrong. |
5918d21085b9748f957276afc287276333326e39 89158 |
|
18-May-2001 |
coar |
Bring forward the NOESCAPE flag from 1.3.. |
853a0c44563b056e40e9cffe911190f554e63ec3 88527 |
|
16-Mar-2001 |
chuck |
This is a fix that went into v1.3 quite a while back, but not into v2.0.
It sorts out the problem when a password protected reverse proxy URL
sends a Proxy-Authenticate to a browser instead of a WWW-Authenticate.
This patch covers the changes to the httpd-2.0 tree.
Submitted by: Graham Leggett
Reviewed by: Chuck Murcko |
928f342270fd8ca02a36f484072d35063121171f 88484 |
|
09-Mar-2001 |
trawick |
tweak ap_get_remote_host() so that the caller can find out if she got
back an IP address
mod_access needed to know this, but the old code didn't handle IPv6 |
aaad84c3e4b4c45fe6a7cc1545e3a4bf4d343629 88443 |
|
03-Mar-2001 |
trawick |
Fix some APR-ization issues:
1) we're using an apr_time_t file mtime, but trying to fit it in
a time_t entry in the cache and in parameters to the cache
access routines; use apr_time_t everywhere
2) we need to use apr_fileperms_t instead of mode_t for APR
file permissions
PR: 6980 |
2b86efe8402938ec3196396a3db099bdc51ee855 88230 |
|
18-Feb-2001 |
fielding |
Intermediate change of hardcoded "helpers" reference to "build"
until I get a chance to revamp this to use APR's variables directly. |
a6b9ed64fdf548c61de9714e2cfb999ec59d149c 88225 |
|
18-Feb-2001 |
gstein |
*) Introduce "ap_conf_vector_t" type to assist with legibility and provide
some type safety. (unfortunately, our old "void*" is type-safe with the
new one, but over time we should be better)
*) Propagate the new type to all appropriate functions.
*) Random cleaning, whitespace, stylistic nits. |
b99dbaab171d91e1b664397cc40e039d0c087c65 88184 |
|
16-Feb-2001 |
fielding |
Update copyright to 2001 |
7690a422ed560ebea0b173b55726020a9461eaf7 88150 |
|
14-Feb-2001 |
dougm |
doh. need a spellchekker for these rename scripts. s/apr_lock_aquire/apr_lock_acquire/g; |
fbb0028b28e73d0a78b21a7e8f0b1d75f349274c 88082 |
|
11-Feb-2001 |
gstein |
include "apr_signal.h" when needed |
1b21d7b3d97def358b2e923655edeb16613a1c31 88060 |
|
10-Feb-2001 |
gstein |
Clean up some of the includes:
- explicitly include apr_lib.h since ap_config.h doesn't
- use apr_want.h where possible
- use APR_HAVE_ where possible
- remove some unneeded includes |
066877f1a045103acfdd376d48cdd473c33f409b 88019 |
|
08-Feb-2001 |
dougm |
renaming various functions for consistency sake
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by: |
1a411968bb62cc88c3cbf14a53caf6587c224259 87939 |
|
01-Feb-2001 |
fanf |
MF 1.3 the fis for the mod_rewrite stupidity. |
66e0098f27f2432e6a987f2a373a98732a5e6917 87935 |
|
01-Feb-2001 |
wrowe |
Fix the remaining APR_FINFO_NORM occurances. Again, followup is needed
to actually test any field outside the scope of APR_FINFO_MIN. |
7640649b89abfb41214ba574d787cb62a3b0f16c 87906 |
|
29-Jan-2001 |
trawick |
get mod_rewrite to compile with xlc on AIX; it still compiles with
gcc, of course |
b5140df3124b186e4a977812fd9828d1e295c080 87904 |
|
29-Jan-2001 |
wrowe |
*) Adopt apr user/group name features for mod_rewrite. Eliminates some
'extra' stat's for user/group since they should never occur, and now
resolves the SCRIPT_USER and SCRIPT_GROUP, including on WinNT NTFS
volumes.
No-one commented on loosing the 'stat' calls, can anyone invent a scenario
where they could be required? Also, I don't like the casts either, so if
you have a better solution, don't whine, just fix it :) |
6f984345bbfa9342dde1f2b7b8c35b7987d078af 87760 |
|
20-Jan-2001 |
wrowe |
The changes required for the APR_FINFO_wanted argument to
apr_stat/lstat/getfileinfo. These are -NOT- optimal, they
are simply the required changes to get the server working.
The size of the patch is a warning about how we need to
really look at what we are trying to accomplish with all
of these stat/lstat calls. |
b980ad7fdc218b4855cde9f75a747527f50c554d 87731 |
|
19-Jan-2001 |
wrowe |
The big change. This is part 3 of the apr-util symbols rename, please
see the first commit of srclib/apr-util/include (cvs apr-util/include)
for the quick glance at symbols changed. |
8ba9d5e9aaaa79dba0de13f5c1b6e725d98f1dc2 87723 |
|
18-Jan-2001 |
fanf |
Bring forward from 1.3:
I broke mod_rewrite by modifying strings in place when expanding them,
because variable lookups can cause subrequests which cause mod_rewrite
to do its stuff again including an expansion on the same string, which
is then syntactically invalid. So copy the lookup keys somewhere else
before using them in such a way that may cause recursion.
In addition to this, my parser could also be confused by complicated
nested rewrite map expansions like ${map1:${map2:key|dflt}|dflt} so
fix that too by keeping track of {} when looking for |.
PR: 7087 |
73e8b26287de5c06fa470d36162e103dbac9c7e5 87697 |
|
17-Jan-2001 |
wrowe |
Provide apr_pool_t arg to register_hooks, since anything they do in that
step -must- be done with a pool that will not outlive the cmd pool, from
which they may have been dynamically loaded. |
ca53a74f4012a45cbad48e940eddf27d866981f9 87617 |
|
09-Jan-2001 |
dougm |
adjust remaining modules to use the new handler hook method (Alan Edwards)
bring back the old handler prototype by reusing r->handler (dougm)
PR:
Obtained from:
Submitted by:
Reviewed by: |
d7c00b9aa7eea983391d094a2cce5aa78bafdd69 87574 |
|
03-Jan-2001 |
trawick |
Pass a valid pool to apr_create_lock(). |
0d5970264e2878a1e8ce78109474272c14b90862 87328 |
|
13-Dec-2000 |
trawick |
Get mod_rewrite to work as a DSO by changing the way it
keeps track of whether or not its post config hook has
been called before. Instead of a static variable (which
is replaced when the DSO is loaded a second time), use
userdata in the process pool. |
5fac45c1ef49924141fe28497deb350cf031b377 87149 |
|
01-Dec-2000 |
trawick |
include <strings.h> for the strcasecmp() and strncasecmp() prototypes;
AIX doesn't have prototypes for these in string.h |
8dbc694301ee14e2150c06965ea474cef7d63932 87090 |
|
27-Nov-2000 |
trawick |
Use #if APR_HAVE_xyz_H, not #ifdef APR_HAVE_xyz_H
Submitted by: Brian Havard |
c23044219b9863cb2dab4604c55ffea48bcfba5e 87088 |
|
27-Nov-2000 |
trawick |
use the APR feature test macro to check for sys/uio.h; it is the
only one defined and it is used in other Apache code;
this gets mod_rewrite to compile on RedHat 6.0 (and perhaps some
other systems) |
85bea52867bd1a8c81080ba415b5cd5b771ce5f7 87076 |
|
23-Nov-2000 |
gstein |
add the "next filter" parameter to the rest of the ap_sub_req_* calls. |
c7cc0d0df2e38b9cf95c5cea4b7e5dbda3e553c2 86940 |
|
13-Nov-2000 |
wrowe |
Win32 symlink (NTFS Junction) support for mod_rewrite |
89afad808257057e8ad7e6ae6d08efd8ef2e9d14 86935 |
|
13-Nov-2000 |
trawick |
Change mod_rewrite's tilde expansion to use apr_get_home_directory(). |
de916b564ef781bece2cac6b42c135f467a25b71 86934 |
|
13-Nov-2000 |
trawick |
Clean up some of the warnings from a Tru64 build, mostly due to
the recent apr_ssize_t->apr_size_t changes. The problem in mod_cgid
was an int function which didn't have a return statement. |
0325eeb2de0c58c1d1027b9a620d03cec5fb4c9c 86914 |
|
10-Nov-2000 |
rbb |
remove a thread un-safe function from mod_rewrite |
961aaa340a0f9822017ec0f5be151709054a3f99 86758 |
|
28-Oct-2000 |
fanf |
Don't truncate the string if a RewriteMap lookup has a syntax error.
Submitted by: erik quanstrom <quanstro@clark.net> |
69169da9ddfba7bdd4f79eb46880b066da9fda4d 86729 |
|
24-Oct-2000 |
trawick |
Back out the suexec change to mod_rewrite.c. It now builds again.
(No, it wasn't a simple issue to get the suexec patch working.)
The suexec support doesn't apply to the external mapping process,
which is not related to any particular request. Instead, [IMHO]
the external mapping process should switch to the configured user/group
that the daemon processes switch to. |
39813b8983b16dce75194e7b70184fd68743db90 86712 |
|
23-Oct-2000 |
manoj |
Add back suexec support. |
a40c2bc85b23987af577e38be65ae1a6ae17af1e 86641 |
|
18-Oct-2000 |
trawick |
Fix a compile error in mod_rewrite.c. |
254becf0cdcf0d9631da62ae317c477f6366119c 86638 |
|
18-Oct-2000 |
fanf |
Restore functionality broken by the mod_rewrite security fix:
rewrite map lookup keys and default values are now expanded
so that the lookup can depend on the requested URI etc.
Because the new code is recursive you can now write configurations
like the following (with nested map lookups) which wasn't directly
possible before -- you had to use a RewriteCond and a %N backref
instead, as in http://www.apache.org/docs/vhosts/mass.html#xtra-conf
RewriteMap tolower int:tolower
RewriteMap host2user txt:/home/www/conf/virtusertbl
RewriteRule /(.*) /home/${host2user:${tolower:%{HTTP_HOST}}|www}/public_html
PR: 6671 |
3d96ee83babeec32482c9082c9426340cee8c44d 86609 |
|
16-Oct-2000 |
wrowe |
Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols
for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)
and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.
All _VAR_ flavors changes to _DATA to be absolutely clear.
Thank you Greg, for the most obvious suggestion. |
338557e3bec207b00891e78a0aa003a9aaf7b581 86302 |
|
23-Sep-2000 |
fanf |
Fix a security problem that affects certain configurations of mod_rewrite.
If the result of a RewriteRule is a filename that contains expansion
specifiers, especially regexp backreferences $0..$9 and %0..%9, then it
may be possible for an attacker to access any file on the web server.
The fix replaces a multi-pass string expander with a one-pass expander,
and includes the code quality improvements that were committed separately
to 1.3.
Message-Id: <E13OQB5-0004Xs-00@hand.dotat.at> |
f0b8dcb0a0d70f8c9fc59d99fb3b235f4571a5cb 86124 |
|
21-Aug-2000 |
trawick |
Fix some bad calls to ap_log_rerror() in mod_rewrite. In some places,
errno was passed as the APR error code. In other places, 0 was passed. |
ad08fc0c8838bf6a84696491ec2ebb6be789df7e 86058 |
|
12-Aug-2000 |
trawick |
Change the rewrite log lock from intra-process to lock-all (and we really can
log it if it fails).
Don't segfault if RewriteLock wasn't coded in the config (i.e., if
rewrite_log_lock isn't set).
Fix a missing error code in a call to ap_log_error(). |
10a4cdd68ef1ca0e54af296fe1d08ac00150c90b 86008 |
|
06-Aug-2000 |
wrowe |
Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by: |
e5e42830f51e7307fb36c7908a22d6e530903a3c 85980 |
|
03-Aug-2000 |
trawick |
Clean up maintainer-mode compiles of mod_rewrite (use AP_INIT_xx macros
and clean up resulting warnings). |
1ccd992d37d62c8cb2056126f2234f64ec189bfd 85976 |
|
02-Aug-2000 |
dougm |
prefix libapr functions and types with apr_ |
829bc6b670c7be394ccd33886add7ac39e276976 85928 |
|
29-Jul-2000 |
trawick |
Change the storage allocation mechanism for ap_proc_t structures
passed to ap_note_subprocess() by mod_rewrite and mod_include. The
storage needs to last as long as the pool passed to
ap_note_subprocess(), so autodata won't work.
The mod_rewrite change wasn't tested. A normal build with mod_rewrite
on Linux currently results in the link failing due to unresolved
references to dbm_*. |
032b8a34c3911bbc5ad5385ca40af65af273bff9 85877 |
|
25-Jul-2000 |
wrowe |
Missing apr_strings.h - hope this wasn't destined for some global header.
PR:
Obtained from:
Submitted by:
Reviewed by: |
0c1931d49de6b70cbd2137c84de5dac27e925cc0 85846 |
|
14-Jul-2000 |
rse |
Replace this unknown hash function someone contributed with the classical DJB
times 33 hash (using XOR instead of ADD). This hash is better understood and
is faster. Also because in the old function the "& 0xff" was not necessary and
just slowed down processing. |
000b67449410515eac43e76ef6667915bfd4d2ab 85686 |
|
24-Jun-2000 |
gstein |
blast the old names for the status codes |
d4f1d9c1ff112a8ab9bee31f196973761329b236 85553 |
|
12-Jun-2000 |
rbb |
Clean up a big chunk of ap_config.h. This basically stops ap_config.h from
including any files. Because of this change, other files must include
their own headers. I also cleaned up a couple of other bugs in some
modules because I had to compile them all.
I expect this to break multiple platforms, but this will be fixed over time.
The massive configure cleanup is almost done. I will go through the files
one more time after this commit. |
9dcb01719b6c94e745a858140279e57f6ba7cae8 85546 |
|
12-Jun-2000 |
stoddard |
Another struct stat to ap_finfo_t change |
6a07be8f4d69cf6936e340975cf8ec25c01774b9 85535 |
|
12-Jun-2000 |
rbb |
Remove the final vestiges of stat.h from Apache 2.0. All calls are now to
ap_stat. This also adds the new function ap_lstat(). This function is
analogous to lstat. |
e68becff3c3ddc18723c9799b8cc2e6e9c3dbd66 85318 |
|
28-May-2000 |
wrowe |
PR:
Obtained from:
Submitted by:
Reviewed by:
Reverse out all _EXPORT_VAR changes back to their original _VAR_EXPORT
names for linkage (API_, CORE_, and MODULE_). |
30c289e6bc6d28d210b21edd800ab2cfc78a8381 85309 |
|
27-May-2000 |
wrowe |
This patch corrects the issues from the AP_EXPORT and linkage
specification arguments to the ap_hooks.h declarations. As with
the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.
I will be happy to revert the inclusion of ap_config.h from
httpd.h if this bothers anyone. More individual modules need
to be patched if we do so.
The API_EXPORTs all moved into central storage in the ap_config.h
header. Without WIN32 or API_STATIC compile time declarations,
these macros remain no-ops.
This patch also moves the following data from http_main to http_config:
const char *ap_server_argv0;
const char *ap_server_root;
ap_array_header_t *ap_server_pre_read_config;
ap_array_header_t *ap_server_post_read_config;
ap_array_header_t *ap_server_config_defines;
And the following variables had already moved into ap_hooks.c:
ap_pool_t *g_pHookPool; (initialized now in http_config)
int g_bDebugHooks; (out of http_config)
const char *g_szCurrentHookName; (out of http_config)
The changes to http_main.c are in preparation for that module to
move out to a seperate .exe for win32. Other platforms will be
unaffected, outside of these changes. |
5a4b3207b395b426c5a9066f4afea8d3fa8c6660 85292 |
|
25-May-2000 |
stoddard |
Win32: Convert ap_proc_t to tranparent type. |
111e21f212e787a149337cc061ea53049556c1f1 85265 |
|
21-May-2000 |
manoj |
Remove all remaining instances in Apache code of
ap_{block,unblock}_alarms. |
ff72a628571224579194f37cf8db96186ae889a5 85045 |
|
26-Apr-2000 |
dougm |
add AP_ prefix to *HOOK* macros |
404e2e1f8ad30c2d996f5fb6b3a9a4a4a14a004b 84963 |
|
14-Apr-2000 |
rbb |
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages
on Linux, but probably breaks somewhere. |
66669fa91efb1e78bbac01e53194342a92c1005a 84960 |
|
14-Apr-2000 |
trawick |
Get mod_rewrite to compile with no warnings on OS/390
(cc) and Linux (gcc -Wall). |
3108f115a449f84ed8aad1e2126f18bd158a4e94 84934 |
|
07-Apr-2000 |
stoddard |
Get Apache on Windows compiling again after the patch eliminating
buffered file i/o. |
bcf30936d509259ebd1f7aeabca7385eaee08d04 84928 |
|
05-Apr-2000 |
ake |
Get mod_rewrite building and running, and mod_status building for Win NT |
462eecbe1a02fe862f779e51dd66a4314d153466 84916 |
|
05-Apr-2000 |
trawick |
stop relying on a macro to map signal() to ap_signal(); call
ap_signal() directly |
ab2c1c1c83ec91415565da5a71fbc15d9685caa6 84879 |
|
31-Mar-2000 |
fielding |
Update to Apache Software License version 1.1 |
39f49d7cf4ddf474b2d78c658f30f70f25aba11e 84829 |
|
23-Mar-2000 |
stoddard |
Get mod_rewrite working with APR locks
This has been tested on Linux and works (with the caveats:
must use --disable-hsregex, must define NO_DBM_REWRITEMAP,
must remove Dirks March 14 patch from util.c and httpd_config.c).
Submitted by: Paul Reder
Reviewed by: Bill Stoddard |
87dbf205c2a957ab59e2446de92de49f4ea10529 84747 |
|
12-Mar-2000 |
dgaudet |
more post-old-style Configure cleanup |
64185f9824e42f21ca7b9ae6c004484215c031a7 84725 |
|
10-Mar-2000 |
rbb |
Fix all the License issues. Including:
s/Apache Group/Apache Software Foundation/
s/1999/2000/
s/Sascha's license/ASF license |
2efb0dd4ae67571f12f31028a55e9be962c3efb9 84657 |
|
21-Feb-2000 |
stoddard |
Make file I/O and network I/O writev/sendv APIs consistent.
Eliminate use of ap_iovec_t and use Posix struct iovec. I never
did hear a case (much less a strong case) supporting the need
for ap_iovec_t, so out it goes. |
e660afe2f4b976a0b1fe2b84f37d4a5239215bb8 84642 |
|
18-Feb-2000 |
stoddard |
Have seperate variable on ap_writev to set the number of iovecs passed in
and pass back the number of bytes written. Use ap_iovec_t on the call rather
than struct iovec (I may reverse this tomorrow :-). Whatever we do, the network_io
and file_io calls need to use iovecs consistently, which isn't the case now. |
9625528fcf4fa27288f3be080a1979c8ef60d7df 84497 |
|
19-Jan-2000 |
rbb |
Manoj has been pushing for this for a while, but I've been too dense
to understand that he was right. :-) Basically, this makes the modules
use ap_config to test for header file inclusion. This method is not to
be used for larger modules that run autoconf theirselves. Including
ap_config is only valid for modules which rely on Apache to do their
configuration. Currently, this is only the core modules. |
6db54801798f6021bb464de7b3fdcc9dc3150f7b 84413 |
|
09-Jan-2000 |
dgaudet |
time overhaul:
- ap_time_t is a 64-bit scalar, microseconds since epoch
- ap_exploded_time_t corresponds to struct tm with a few extras
probably broken on anything except linux. |
abbf877b2efa3a8dae5e1c4bc4e53500ad96d81d 84407 |
|
07-Jan-2000 |
rbb |
Move some modules over to using ap_time_t instead of struct tm. |
ec2cd8d2cd0fa187218e7822586ba8de77ff2202 84402 |
|
07-Jan-2000 |
rbb |
Fix mod_rewrite to work with the new APR stat structure.
Submitted by: Paul Reder
Reviewed by: Ryan Bloom |
9ede6357edc9aff1fb2f7edebefab473673298aa 84393 |
|
04-Jan-2000 |
rbb |
Initialize all ap_file_t's to NULL. This allows ap_open and ap_stat to
work together without causing memory leaks. |
0c0afda9ab1830cc440f25b755aa363d23b20dd5 84379 |
|
31-Dec-1999 |
dgaudet |
merge 1.3 changes to rewrite forward onto 2.0
Submitted by: Paul J. Reder <rederpj@raleigh.ibm.com> |
895b674fa4e5a4c8fcbcb4e7b30630857653c149 84378 |
|
31-Dec-1999 |
dgaudet |
port mod_rewrite to 2.0
Submitted by: Paul J. Reder <rederpj@raleigh.ibm.com> |
b79b743d4cff02d6a830bb7118826a2fd608742a 84023 |
|
22-Oct-1999 |
martin |
I am not claiming that the modules work now, but at least the parameter lists
are prepared for the updated ap_log_rerror() format. BTW: What is APLOG_NOERROR
for now that we have an explicit error code? This is still WIP! |
fc9b2e8809c305f340d86a789566f8abb1ca8a19 83970 |
|
12-Oct-1999 |
martin |
Remove most of the annoying "re ap_context_t mplement" mis-replacements
by what I think is their real meaning. Guys, I didn't verify all of this,
please have a close look at my "fixes". Thanks. |
b4c8a80f7dbfc9b56dbe03bdc28f0b5eb5f23697 83852 |
|
31-Aug-1999 |
rbb |
Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly. |
17db3022778ec47c890504b9378961c428bfddc8 83767 |
|
26-Aug-1999 |
fielding |
user and ap_auth_type fields were moved from connection_rec to request_rec
Submitted by: Ryan Bloom |
0f081398cf0eef8cc7c66a535d450110a92dc8ae 83751 |
|
24-Aug-1999 |
fielding |
Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group |