Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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
```

Project details


Release history Release notifications

This version
History Node

1.1.2

History Node

1.1.1

History Node

1.1

History Node

1.0

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
nginxctl-1.1.2.tar.gz (17.0 kB) Copy SHA256 hash SHA256 Source None Oct 27, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page