Skip to content

Latest commit

 

History

History
25 lines (21 loc) · 825 Bytes

README.md

File metadata and controls

25 lines (21 loc) · 825 Bytes

nginxadmin

Bash script to create, enable or disable a site in nginx.

Requeriments

Usage

$ nginxadmin
Usage: nginxadmin <command> <filename> [document root]

Available commands:
  help                         : Show this message and exit.
  -c, create  <filename> <root>: Create (and enable) a new site. Note, <root>
                                 must be an absolute path.
  -e, enable  <filename>       : Enable an earlier created site.
  -d, disable <filename>       : Disable a site.

$ nginxadmin create test.io absolute/path/to/test.io/web-files
Testing nginx configuration… Ok
Site test.io has been enabled. 
Run "/usr/sbin/nginx -s reload" to apply the changes.
$