Skip to content

nginxctl provides the ability to list nginx server blocks (vhosts) similar to that of apachectl

Notifications You must be signed in to change notification settings

rackerlabs/nginxctl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NginxCtl

Build Status

The nginxctl allows to control some of the functionlities of nginx daemon. This tool is similar to apachectl and which main feature is to list domains configured on a nginx webserver.

Download/Installation

git clone https://github.com/rackerlabs/nginxctl.git 
cd nginxctl
python nginxctl.py

Usage

Usage: nginxctl.py [option]
Example: nginxctl.py -v


Available options:
	-S list nginx vhosts
	-t configuration test
	-k start|stop|status|restart|fullstatus
	-v version
	-h help

Here is an example of running the option to discover virtual hosts:

# python nginxctl.py -S
nginx vhost configuration:
*:8080 is a Virtualhost
	port 8080 namevhost  example.com  (/etc/nginx/sites-enabled/example.com:5)
[::]:80 is a Virtualhost
	port 80 namevhost  example.com  (/etc/nginx/sites-enabled/example.com:5)

About

nginxctl provides the ability to list nginx server blocks (vhosts) similar to that of apachectl

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages