Only allow certain file extensions?

Igor Sysoev is at rambler-co.ru
Thu Feb 26 09:50:15 MSK 2009


On Wed, Feb 25, 2009 at 11:54:20PM +0100, Atif Ghaffar wrote:

> On Wed, Feb 25, 2009 at 7:34 AM, Igor Sysoev <is at rambler-co.ru> wrote:
> 
> >
> >
> >     location ~ \.(htm|css|jpg|gif)$ {
> >         ...
> >     }
> >
> > Igor, Is it case sensitive?

Yes.
Use "~*" for case insensitive regex.

BTW, I did not see the origianl email. Just the answer:

> I have been bitten by it before :-)
> 
> 
> 
> -- 
> best regards
> Atif Ghaffar


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list