Need To Run Multiple Location Blocks

justin nginx-forum at
Tue Jul 17 22:31:22 UTC 2012


Thanks for the reply. This is a bit sloppy though because let us assume
I have multiple publish location blocks. Copy and pasting the PHP
location block multiple times is bad practice, because if I need to make
changes, I have to update the PHP block multiple times. Is there a way
to make the PHP location block a variable and use it in multiple

Thanks much.

Posted at Nginx Forum:,228624,228658#msg-228658

More information about the nginx mailing list