Re: allow autoindex for a directory, but not for its subdirectories

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Freek Dijkstra wrote:

> Again, I really still don't understand the purpose of the AP_REG_NOTEOL
> flag. [...] The
> more I think about it, the less sense it makes.

Here is the history:

r76312 (1996-01-14)
src/main/http_request.c, initial revision

  if (is_matchexp(entry_dir) && !strcmp_match(this_dir, entry_dir)) {

r76659 (1996-07-25)
src/main/http_request.c, allow <Directory> and <Location> to use regex.

  if (!regexec(entry_core->r, test_dirname, 0, NULL,
       (j == num_sec) ? 0 : REG_NOTEOL)) {

r78909 (1997-08-06)
src/main/http_request.c, directory_walk optimization reducing the core
loop from O(N*M) to O(N+M).

  if (!regexec(entry_core->r, test_dirname, 0, NULL, REG_NOTEOL)) {

r83226 (1999-05-21)
src/main/http_request.c, use new api stub function

  if (!ap_regexec(entry_core->r, test_dirname, 0, NULL, REG_NOTEOL)) {

r83750 (1999-08-24)
modules/http/http_request.c, Obtained from Apache 1.3.9

  if (!ap_regexec(entry_core->r, test_dirname, 0, NULL, REG_NOTEOL)) {

r88453 (2001-03-05)
move to server/request.c

  if (ap_regexec(entry_core->r, r->filename, 0, NULL, REG_NOTEOL)) {

r90684 (2005-02-11)
server/request.c, change constant namespace

  if (ap_regexec(entry_core->r, r->filename, 0, NULL, AP_REG_NOTEOL)) {

REG_NOTEOL was added from the very beginning, although it would work for
the last section.

while it was nice seeing a (very small) part of Apache's history, it did
learn me nothing.

Freek

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux