Follow those instructions to upgrade your nginx to the latest version.
--- For xtreamcodes
sudo apt-get update -y
sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev -y
sudo apt-get install libssl-dev -y
cd /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx_old_working
cd /root
wget https://nginx.org/download/nginx-1.25.3.tar.gz
tar -xvzf nginx-1.25.3.tar.gz
cd nginx-1.25.3/
clear
./configure --prefix=/home/xtreamcodes/iptv_xtream_codes/nginx/nginx --with-http_ssl_module --with-http_v2_module --with-threads --with-http_realip_module
make
sudo make install
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -v
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/
sudo chattr +i /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
cd /root
rm -rf nginx-1.25.*
bash /home/xtreamcodes/iptv_xtream_codes/start_services.sh
--- For streamcreed
sudo apt-get update -y
sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev -y
sudo apt-get install libssl-dev -y
cd /home/streamcreed/nginx/sbin/nginx /home/streamcreed/nginx/sbin/nginx_old_working
cd /root
rm -rf nginx-1.25.*
wget https://nginx.org/download/nginx-1.25.3.tar.gz
tar -xvzf nginx-1.25.3.tar.gz
cd nginx-1.25.3/
clear
./configure --prefix=/home/streamcreed/nginx/ --with-http_ssl_module --with-http_v2_module --with-threads --with-http_realip_module --with-http_stub_status_module
make
sudo make install
sudo chattr +i /home/streamcreed/nginx/sbin/nginx
/home/streamcreed/nginx/sbin/nginx -v
chown -R streamcreed:streamcreed /home/streamcreed/nginx/sbin/
cd /root
rm -rf nginx-1.25.*
bash /home/streamcreed/start_services.sh
--- For xtreamcodes
sudo apt-get update -y
sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev -y
sudo apt-get install libssl-dev -y
cd /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx_old_working
cd /root
wget https://nginx.org/download/nginx-1.25.3.tar.gz
tar -xvzf nginx-1.25.3.tar.gz
cd nginx-1.25.3/
clear
./configure --prefix=/home/xtreamcodes/iptv_xtream_codes/nginx/nginx --with-http_ssl_module --with-http_v2_module --with-threads --with-http_realip_module
make
sudo make install
/home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx -v
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/
sudo chattr +i /home/xtreamcodes/iptv_xtream_codes/nginx/sbin/nginx
cd /root
rm -rf nginx-1.25.*
bash /home/xtreamcodes/iptv_xtream_codes/start_services.sh
--- For streamcreed
sudo apt-get update -y
sudo apt-get install build-essential libpcre3 libpcre3-dev zlib1g zlib1g-dev -y
sudo apt-get install libssl-dev -y
cd /home/streamcreed/nginx/sbin/nginx /home/streamcreed/nginx/sbin/nginx_old_working
cd /root
rm -rf nginx-1.25.*
wget https://nginx.org/download/nginx-1.25.3.tar.gz
tar -xvzf nginx-1.25.3.tar.gz
cd nginx-1.25.3/
clear
./configure --prefix=/home/streamcreed/nginx/ --with-http_ssl_module --with-http_v2_module --with-threads --with-http_realip_module --with-http_stub_status_module
make
sudo make install
sudo chattr +i /home/streamcreed/nginx/sbin/nginx
/home/streamcreed/nginx/sbin/nginx -v
chown -R streamcreed:streamcreed /home/streamcreed/nginx/sbin/
cd /root
rm -rf nginx-1.25.*
bash /home/streamcreed/start_services.sh