On Sat, 2016-11-05 at 10:45 +1100, Michael Schams via luv-main wrote:

> <Directory ... >
>   <FilesMatch [WHITELIST] >
>     Require all denied
>   </FilesMatch>
> </Directory>

Finally I ended up with the following solution, which seems to work well
in Apache 2.4.x and is also easy to read:

<Directory ... >
  <If "! %{REQUEST_URI} =~ /\.(png|gif|jpe?g)$/i" >
    Require all denied
  </If>
</Directory>


Cheers
Michael


_______________________________________________
luv-main mailing list
[email protected]
https://lists.luv.asn.au/cgi-bin/mailman/listinfo/luv-main

Reply via email to