Location regex
Michal Kowalski
kowalski.michal at gmail.com
Wed Oct 28 05:59:44 MSK 2009
On Wed, Oct 28, 2009 at 2:37 AM, Mathew Davies
<thepixeldeveloper at 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)))
More information about the nginx
mailing list