rewrite / to /app in nginx template