This tool is similar to apachectl but for nginx. The important feature of this tool is ability to list vhosts configured on a nginx server
Project description
<h1>NginxCtl</h1>
This is a simple tool to manage nginx service on a server. This tool is similar to apachectl but for nginx. The important feature of this tool is ability to list vhosts configured on a nginx server.
<h2>Download/Installation</h2>
```
wget https://github.rackspace.com/iaw/nginxctl/raw/master/nginxctl.py -O nginxctl.py
python nginxctl.py -S
```
If you cannot access Rackspace github alternatively, you can get it from:
```
wget http://nginxctl.rax.io -O nginxctl.py
python nginxctl.py -S
```
Or even easier
```
curl -s nginxctl.rax.io | python -
```
<h2>Usage</h2>
```
python nginxctl.py -h
Usage: nginxctl.py [options]
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
```
# curl -s nginxctl.rax.io | python - -S
nginx vhost configuration:
*:80; is a Virtualhost
port 80; localhost (/etc/nginx/sites-enabled/default:28)
alias example.com
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
```
Documentation can be found at: https://github.rackspace.com/pages/iaw/nginxctl/
This is a simple tool to manage nginx service on a server. This tool is similar to apachectl but for nginx. The important feature of this tool is ability to list vhosts configured on a nginx server.
<h2>Download/Installation</h2>
```
wget https://github.rackspace.com/iaw/nginxctl/raw/master/nginxctl.py -O nginxctl.py
python nginxctl.py -S
```
If you cannot access Rackspace github alternatively, you can get it from:
```
wget http://nginxctl.rax.io -O nginxctl.py
python nginxctl.py -S
```
Or even easier
```
curl -s nginxctl.rax.io | python -
```
<h2>Usage</h2>
```
python nginxctl.py -h
Usage: nginxctl.py [options]
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
```
# curl -s nginxctl.rax.io | python - -S
nginx vhost configuration:
*:80; is a Virtualhost
port 80; localhost (/etc/nginx/sites-enabled/default:28)
alias example.com
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
```
Documentation can be found at: https://github.rackspace.com/pages/iaw/nginxctl/
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
nginxctl-1.1.tar.gz
(17.0 kB
view hashes)