Pedro Melo
February 11, 2011 11:10AM
Hi,

I'm migrating a setup for a friend, and hit a snag, I can't seem to
find the proper way to do this on nginx.

Assume a directory /my/files/ with a.gif inside. He is using:

location /files {
alias /my/files;
}

but then he is requesting /files/a.gif/extra.jpg

With the previous setup, the server would send a.git and ignore the
extra.jpg. With nginx I get a 404.

Any way to convince nginx to walk to path and serve the first file
found, or do I have to trick him with rewrite rules?

Thanks,
--
Pedro Melo
http://www.simplicidade.org/
xmpp:melo@simplicidade.org
mailto:melo@simplicidade.org

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Migrating from Lighttpd/Apache combo: extra path on static files

Pedro Melo February 11, 2011 11:10AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 277
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready