Hello Benny,
For a production-facing NGINX server, the preferred approach is to apply the vendor security update without stopping NGINX unnecessarily. First, confirm the exact CVE, current NGINX version with nginx -V, and whether the vulnerable module or feature is enabled. Before patching, back up /etc/nginx/, certificates, custom modules, and capture the current configuration with nginx -T. Install the security update from your OS/vendor repository or the official NGINX package source rather than replacing the binary with an unrelated build. After updating, validate the configuration with nginx -t and confirm all required modules and build options remain available. If the update only requires a configuration reload, use systemctl reload nginx or nginx -s reload instead of restarting the service. A graceful reload starts new workers with the updated configuration while existing workers finish active requests, minimizing service interruption. However, if the CVE affects the NGINX executable itself, existing worker processes may still run the old binary, so use NGINX's documented binary upgrade procedure or a controlled restart as appropriate. If the server is behind a load balancer or has redundant instances, drain the affected node and patch it while another healthy instance handles traffic. After patching, verify TLS, listening ports, upstream connectivity, application health checks, HTTP responses, and NGINX error logs. For a critical remote-code-execution vulnerability, do not rely on a WAF or configuration workaround as a substitute for the security update. If you provide the CVE, NGINX version, Linux distribution, and installation method, I can provide the exact upgrade and rollback commands for your environment.
I hope you've found something useful here. If it helps you get more insight into the issue, it's appreciated to accept the answer. Should you have more questions, feel free to leave a message. Have a nice day!
Domic Vo.