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

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:[email protected]
mailto:[email protected]

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs