NXSite is a minimalistic site manager for NGINX. Works on most Linux-based systems. Heavily inspired by Apache's
a2ensite
and a2dissite
utilities.
sudo wget https://raw.githubusercontent.com/sheikhuzairhussain/nxsite/main/nxsite -P /usr/bin/
sudo chmod +x /usr/bin/nxsite
To list all/available sites:
nxsite list [all|enabled]
To enable/disable a site:
nxsite [up|down] <site-config-name>
To list enabled sites:
nxsite list enabled
To enable example.com
nxsite up example.com