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

Jason Anderson janderson at appinfoinc.com
Tue Jan 30 14:12:01 UTC 2024


This may help:

https://docs.nginx.com/nginx/admin-guide/high-availability/configuration-sharing/

Regards,

Jason

On Tue, Jan 30, 2024, 9:04 AM baalchina <baalchina at gmail.com> wrote:

> 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
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> https://mailman.nginx.org/mailman/listinfo/nginx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20240130/1e00637c/attachment.htm>


More information about the nginx mailing list