Simple manager for creating and removing hosts from nginx site-enabled
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
server-manager.sh

README.md

#Server manager for nginx hosts

Simple manager for creating and removing hosts from nginx site-enabled

Terminal

##Before start ####Download repository (e.g. git clone https://github.com/jsifalda/nginx-server-manager-bash.git) ####Make server manager global! Run command cp server-manager.sh /usr/local/bin/server-manager (Don't forget to have /usr/local/bin in your PATH) ####Set variables (nginxConfDir & hostsFile) in file server-manager for your environment ####Run forest, run! sudo server-manager

##Usage (SUDO is required!)

###Creating host

sudo server-manager

####Creating host with cloned repository

sudo server-manager -c <git-repo>

###Removing host

sudo server-manager -r