Skip to content
Simple manager for creating and removing hosts from nginx site-enabled
Shell
Latest commit 85e4a92 Jan 29, 2014 @jsifalda Merge pull request #2 from Budry/fix-set-defualt-htdocs
Remove unneeded creating of new host folder
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
Something went wrong with that request. Please try again.