Need To Run Multiple Location Blocks

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


Edho,

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
locations?

Thanks much.

Posted at Nginx Forum: http://forum.nginx.org/read.php?2,228624,228658#msg-228658



More information about the nginx mailing list