ngxman
is a bash script that allows you to easily manage your Nginx servers.
Usage : ngxman [enable|disable|nano|delete|ls|cat] <...files>
To install the script, just run source ./install.sh
.
The script also has auto-complete.
enable
: Create symlinks in/etc/nginx/sites-enabled
and reload Nginxdisable
: Remove symlinks in/etc/nginx/sites-enabled
and reload Nginxnano
: Modify or create configurations with nano and reload Nginxdelete
: Delete configurations and symlinks and reload Nginxls
: List configurations in/etc/nginx/sites-available
and/etc/nginx/sites-enabled
cat
: Display the content of a configuration file