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


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?


Pedro Melo
xmpp:[email protected]
mailto:[email protected]