Apache web server installed by default with Virtualmin module in Webmin, but Install and Configure Nginx on Virtualmin. Here I have followed this on CentOs 7, CentOs 6, RHEL 7, and RHEL 6. You can check my link to Install Install Virtualmin on Webmin CentOs, Red Hat, and Fedora.

(1) Stop the Apache and disable it on boot.

Stop the Apache service with disable the Apache automatic start from the boot process.

# service httpd stop
# service httpd stop
# chkconfig httpd off

(2) Install the Nginx web server with the yum command.

# yum install nginx

(3) Start the Nginx web server on CentOS, RHEL :

CentOS 7 / RHEL 7:
# systemctl start httpd
# systemctl enable httpd
CentOS 6 / RHEL 6 :
# service nginx start
# chkconfig nginx on

(4) Install Control Virtualmin Nginx plugin :

 # yum install wbm-virtualmin-nginx wbm-virtualmin-nginx-ssl

Resolving Dependencies
–> Running transaction check
—> Package wbm-virtualmin-nginx.noarch 0:1.8-1 will be installed
—> Package wbm-virtualmin-nginx-ssl.noarch 0:1.4-1 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

Package Arch Version Repository Size
wbm-virtualmin-nginx noarch 1.8-1 virtualmin-universal 136 k
wbm-virtualmin-nginx-ssl noarch 1.4-1 virtualmin-universal 11 k

Transaction Summary
Install 2 Packages

Total download size: 147 k
Installed size: 357 k
Is this ok [y/d/N]: y
Downloading packages:
(1/2): wbm-virtualmin-nginx-ssl-1.4-1.noarch.rpm | 11 kB 00:00
(2/2): wbm-virtualmin-nginx-1.8-1.noarch.rpm | 136 kB 00:01
Total 76 kB/s | 147 kB 00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wbm-virtualmin-nginx-1.8-1.noarch 1/2
Installing : wbm-virtualmin-nginx-ssl-1.4-1.noarch 2/2
Verifying : wbm-virtualmin-nginx-1.8-1.noarch 1/2
Verifying : wbm-virtualmin-nginx-ssl-1.4-1.noarch 2/2

wbm-virtualmin-nginx.noarch 0:1.8-1 wbm-virtualmin-nginx-ssl.noarch 0:1.4-1

Configure Nginx on Virtualmin

  • Login in virtualmin root panel and go to the below settings.

Webmin Servers Nginx WebServer

Check nginx and configuration files should be set .

By Sachin G

I am a professional freelance contributor and founder of tech transit. Love to write and lover of education, culture, and community. I have been using it, setting, supporting, and maintaining it since 2009.Linux rocks! Sachin G Follow me on LinkedIn and x formerly twitter