Update nginx.conf and add custom-nginx-rewrite-rules support