clear cache before restart
comments for separate server blocks
paste nginx directives 1:1 as in input
group variables
apache does rewrite/redirect if needed -> don't check in nginx too.