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
```
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.
Source Distribution
nginxctl-1.1.2.tar.gz
(17.0 kB
view details)
File details
Details for the file nginxctl-1.1.2.tar.gz
.
File metadata
- Download URL: nginxctl-1.1.2.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f1e753b91223669388ad005acce97a2b00ca0837d745d40e8501f1309d53c6d |
|
MD5 | 8b17de2cf53e39fc8838d3a85f38338e |
|
BLAKE2b-256 | 7245936e0805da71fcaf0e5a1f9256f757f5fa95057e391687ba067ef2d52926 |