Squid has a mechanism by which incoming URL's can be passed to an external program to be rewritten and the reverse proxy subsequently calls out to the rewritten URL http://wiki.squid-cache.org/SquidFaq/SquidRedirectors Is there a way to emulate this from within nginx Thanks, Yusuf