Update nginx on the fly with a change of prefix

Sergey A. Osokin osa at freebsd.org.ru
Sat May 3 16:31:52 UTC 2025


Hi Sébastien,
hope you're doing well.

On Sat, May 03, 2025 at 06:14:19PM +0200, Sébastien Rebecchi via nginx wrote:
> 
> Is there a way to update Nginx on the fly while new nginx was configured
> with a different --prefix than was the old one?

You may want following the "Upgrading Executable on the Fly" procedure,
https://nginx.org/en/docs/control.html#upgrade.

Please note:
1. the configuration files may need to be presented in both prefixed;
2. proper testing [in a lower environment] is required.

Hope that helps.

Thank you.

-- 
Sergey A. Osokin


More information about the nginx mailing list