Re: <FilesMatch> with "$" -- redundant?

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

 



On Jan 17, 2008 1:13 PM, Brian A. Seklecki
<lavalamp@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> All:
>
> I see a lot of examples of <FilesMatch> with end-of-line char ($)
> matching.
>
> Isn't that redundant / implied?  A <FileMatch> directive is just a regex
> that automatically has ".*" pre-pended and "$" appended? (But only used
> if evaluating a file, and not a directory)

No. Consider the files "htmlfile.php" and "phpfile.html" and the
contains <FilesMatch "html$"> versus <FilesMatch "html">. The first
one will match only the second file, while the second one will match
both.

Joshua.

---------------------------------------------------------------------
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