On Wed, Oct 28, 2009 at 2:37 AM, Mathew Davies
<thepixeldeveloper@googlemail.com> wrote:
>> A more efficient way of doing this is :
>
> I do not see why. I am specifying "return 403" 3 times vs once. I was it
> doing it this way before and did not think it was so efficient.
>
> Here is my full config
>
>> # Protect certain directories.
>> location ~* ^/(library|conf|appg) {
>> return 403;
>> }
>>
try
location ~* ^/(library|conf|appg).*$ {
return 403;
}
if you are on linux "man 7 regex" should be a good starting reading
before you goo off goggling.
mk
--
(let* ((mk "MichaĆ Kowalski") (sig `(lambda () ,mk))) ((eval sig)))