Skip to content

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

Notifications You must be signed in to change notification settings

douggr/nginxadmin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

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.
$ 

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages