File Checking Rewriting and Handing off to Back End

David Legg David.Legg at smithelectric.com
Sun Nov 10 23:08:32 UTC 2013


On 08/11/2013 22:43, "Francis Daly" <francis at daoine.org> wrote:

>The arguments to try_files are prefixed with the current $document_root
>before being sought as files (with the final argument being magic).
>
>So if you put your to-be-served file in the correct place, and use the
>variables correctly, then it should Just Work.
>
>  try_files /tiles/${arg_z}_${arg_x}_${arg_y}.png @fallback;
>
>You might want to wrap that in a "location = /data {}" block.


Yep, that¹s exactly what I¹m looking for and it¹s working fine. I don¹t
think I had the syntax in the arguments quite correct. It¹s not just a
question of playing about with the location as to where things will be.



More information about the nginx mailing list