buggy example on wiki
Martin Minka
martin.minka at gmail.com
Tue Oct 23 16:05:27 MSD 2007
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
A)
location ~* ^.+\.(jpg|*jpeg*|gif)$ {
is used in:
http://wiki.codemongers.com/NginxFullExample2
http://wiki.codemongers.com/NginxRuExample
http://wiki.codemongers.com/NginxDjangoFastCGI
B)
location ~* \.(gif|jpg|*jpeg*)$ {
is used in core module documentation
do you agree to change examples A ?
is there a way to use mime type to catch static content ?
sincerely,
Martin
More information about the nginx
mailing list