rewrite nginx configuration file code example Example 1: nginx reload config sudo service nginx reload Example 2: how to reload nginx config sudo nginx -s reload