having rewrite rule in nginx go to configurable place

the rewrite rule in the nginx site conf is now a template option, and nginx status plugin is enabled