Sandeep has a tutorial here:
https://www.uxlinux.com/update-nginx-to-latest-official-version-in-centos-8-el8-cwp/
Also consider hardening Nginx with the instructions here:
https://www.awsmonster.com/2019/09/how-to-secureharden-cwp-nginx-server.html
Thanks for quick reply, but I did it in a different way for my all server & found all of them working fine. I followed few tutorials from google & combine them:
Update CWP Nginx to latest stable version:
1. Go to CWP admin ---> Server Settings--->Yum Manager--->nginx.repo & replace with below code & save:
[nginx-stable]
name=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
[nginx-mainline]
name=nginx mainline repo
baseurl=http://nginx.org/packages/mainline/centos/$releasever/$basearch/
gpgcheck=1
enabled=0
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=true
2. Login as root via SSH & run below code:
yum update -y
3. Now you can give Nginx a restart, if don't found any error then you are & you can check your Nginx
version by below command:
nginx -v
4. If you found error while restarting Nginx then rebuild CWP Web Servers with Nginx & it's done, no error anymore, this
time CWP will build webserver with latest Nginx version.