Lets say i get a GET request to file /dir/01/23/file.ext. I would like to serve the file /dir/01/23 which is an extensionless file. The filename should be file.ext rather then 03 and the mime of .ext should be used. How do i write a rule in nginx to do that?
Tell me more
×
Server Fault is a question and answer site for
professional system and network administrators. It's 100% free, no registration required.
|
|
|||
|
|
or
you may also need to specify dedicated location. For example:
|
||||
|