views:

46

answers:

0

I'm setting up nginx as an asset server for our website, but I have a requirement that nginx needs to check in two directories for the file:

\assets\dir1\pic.jpg

\assets\dir2\pic.jpg

I need nginx to check in the \assets\dir1 first and if it can't find the file, check in \assets\dir2. The problem is that nginx only allows for the specification of one root directive.

How would I configure nginx to fall through these directories to find the asset?