Pedro Melo
February 11, 2011 11:10AM

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

nginx mailing list
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: 58
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready