Update rewrite in nginx