Re: FilesMatch question

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

 



Eric Covener wrote:
On Fri, Jul 24, 2009 at 10:07 AM, "Fábio Jr."<fjuniorlista@xxxxxxxxx> wrote:
Hello,

Is the FilesMatch directive case sensitive?

If isn't, can I use a regex like "\.(jpe?g|JPE?G)" to solve the problem?


It's case sensitive. You can prefix a PCRE expression with (?i) to
make it case-insensitive without any special support in Apache.


Maybe still be careful if your server is a Windows server.
Because even if FilesMatch is case-sensitive, the NTFS filesystem is not. I don't know how exactly Apache deals with that.

I mean, if your intention is to return the file whether it ends in .jpeg,.Jpeg,..JPeG or whatever, then it does not matter.
But it would matter if you wanted to exclude .Jpeg but accept .jpeg.



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