5 messages in ru.sysoev.nginxRe: buggy example on wiki
FromSent OnAttachments
Martin MinkaOct 23, 2007 5:05 am 
RoxisOct 23, 2007 5:41 am 
Martin MinkaOct 23, 2007 6:01 am 
Igor SysoevOct 23, 2007 6:56 am 
Martin MinkaOct 24, 2007 12:51 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: buggy example on wikiActions...
From:Igor Sysoev (is-G@public.gmane.org)
Date:Oct 23, 2007 6:56:52 am
List:ru.sysoev.nginx

On Tue, Oct 23, 2007 at 02:05:27PM +0200, Martin Minka wrote:

There are two types of examples on wiki about how to catch/serve static files. The example A is not working correctly for names ending with the extension. I used the example A and added *.tar files as static (location ~* ^.+\.(jpg|*jpeg*|gif|tar)$). I experienced troubles with "http://server.com/katar". It was processed like static file

The "\.(jpg|jpeg|gif|tar)$" should not match "/katar".

As I understand the only NginxDjangoFastCGI is incorrect:

- location ~* ^.+.(html|... + location ~* ^.+\.(html|...

B) location ~* \.(gif|jpg|*jpeg*)$ { is used in core module documentation

do you agree to change examples A ?

Where do you see "*jpeg*" ?

is there a way to use mime type to catch static content ?

No.