adjust nginx configuration and grammar changes