Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple manager for creating and removing hosts from nginx site-enabled
Shell
branch: master

Merge pull request #2 from Budry/fix-set-defualt-htdocs

Remove unneeded creating of new host folder
latest commit 85e4a9207f
@jsifalda authored
Failed to load latest commit information.
README.md Pretty README
server-manager.sh Removed wrong and useless directory creation

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.