Core Linux

How to remove Nginx on a RHEL or CentOS in Vesta Control Panel

This is tutorial how to remove Nginx on a RHEL or CentOS in Vesta Control Panel

1. Stop nginx

service nginx stop

2. Remove package

yum remove nginx

3. Change vesta configuration

cd /usr/local/vesta/conf
sed -i “/PROXY_*/d” vesta.conf
sed -i “s/8080/80/” vesta.conf
sed -i “s/8443/433/” vesta.conf

4. Change httpd configuration

cd /etc/httpd/conf.d
sed -i “s/8080/80/” *.conf
sed -i “s/8443/443/” *.conf

5. Rebuild vhost configs

for user in $(v-list-sys-users plain); do v-rebuild-web-domains $user; done


Vishwajit Kale
Vishwajit Kale blazed onto the digital marketing scene back in 2015 and is the digital marketing strategist of Hostripples, a company that aims to provide affordable web hosting solutions. Vishwajit is experienced in digital and content marketing along with SEO. He's fond of writing technology blogs, traveling and reading.

Recent Posts

How to Fix the 502 Bad Gateway Error in WordPress

502 Bad Gateway Error is the most irritating and it’s like a headache for the website owner. The most frustrating…

6 hours ago

How to Reset Root Password in CentOS?

In Linux, you can recover your password easily via a root account. The worst situation arises when you forget your…

2 days ago

How to use Meta Business Suite: 2024 Guide

Meta Business Suite is nothing but formerly Facebook Business Manager designed to help users manage their presence across Facebook and Instagram seamlessly.…

5 days ago

The Ultimate Guide to WordPress Maintenance: Tips and Tricks

When you’re running a business that relies on website traffic and sales to succeed. Then you need to keep it…

2 weeks ago

Migrate In 2024: Our Comprehensive Website Migration Manual to the Next Level

Migration! Yes, this word is very big in the web hosting industry and it has its importance. Especially for businesses…

3 weeks ago