Nginx configuration and errors resolution