Update nginx without loosing configuration
i need to update my nginx to latest stable version. how can i do that without loosing my server blocks and nginx.conf file. i mean how can i backup all configuration before updating nginx and restore them back.
thanks in advance.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.