Skip to main content

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


Download files

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

Files for nginxctl, version 1.1.2
Filename, size File type Python version Upload date Hashes
Filename, size nginxctl-1.1.2.tar.gz (17.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

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