Can I set a new virtual host using the server
object in the nginx.conf
configuration file, without restarting the server (and without closing the active connections)?
Thanks
Can I set a new virtual host using the server
object in the nginx.conf
configuration file, without restarting the server (and without closing the active connections)?
Thanks
Yes you can.
nginx -s reload
Or you can send SIGHUP
to the nginx process.
sudo kill -HUP [nginx's pid]
You can Load New Configuration Using Signals. It will
You can even Upgrade To a New Binary On The Fly. See the same doc.
To perform the reload, send the reload
signal:
nginx -s reload