Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

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://raw.githubusercontent.com/fooltruth/nginxctl/master/nginxCtl.py -O nginxctl.py
python nginxctl.py -S
```


<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
```
# python nginxctl.py -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
```
Release History

Release History

This version
History Node

1.1.2

History Node

1.1.1

History Node

1.1

History Node

1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
nginxctl-1.1.2.tar.gz (17.0 kB) Copy SHA256 Checksum SHA256 Source Oct 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting