How can I sync nginx.conf in two keepalived server?

baalchina baalchina at gmail.com
Tue Jan 30 14:03:53 UTC 2024


Hi, all. I had just deploy two nginx servers and made them high-available
using keepalived. I tested it, and HA works fine.

But I had some new questions here:
1st, When I edited the nginx.conf in master server, how to transfer the
conf file to backup server immediately?
2nd, And after I edited , I should run 'nginx -s reload' in the master
server, how can backup server do the same without manual run?
And last, if the config is not correct, after the file transferred to
backup, the backup server can not restart correct, will the backup goes
down?

Thanks.


-- 
from:baalchina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20240130/8337ce8f/attachment.htm>


More information about the nginx mailing list