Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/lukeshirnia/nginxcfg

Displays nginx server blocks (vhosts)
https://github.com/lukeshirnia/nginxcfg

centos debian linux nginx nginxcfg redhat rhel serverblocks ubuntu vhosts webserver

Last synced: 26 days ago
JSON representation

Displays nginx server blocks (vhosts)

Awesome Lists containing this project

README

        

# Nginxcfg

# ![Build Status](https://github.com/LukeShirnia/nginxcfg/workflows/nginxcfg/badge.svg)

The nginxcfg allows to control some of the functionlities of nginx daemon.
This tool is similar to apachectl and which main feature is to list
domains configured on a nginx webserver.

### Download/Installation
```
clone repo
cd nginxcfg
python nginxcfg.py
```

### Usage
```
Usage: nginxcfg.py [option]

Options:
-h, --help show this help message and exit
-v, --version Show script version
-e , --exclude=
Exclude items from output
```

Here is an example of running the option to discover virtual hosts:
```
# python nginxctl.py -S
nginx vhost configuration:
*:8080 is a Virtualhost
port 8080 namevhost example.com (/etc/nginx/sites-enabled/example.com:5)
[::]:80 is a Virtualhost
port 80 namevhost example.com (/etc/nginx/sites-enabled/example.com:5)
```