Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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)
- Host: GitHub
- URL: https://github.com/lukeshirnia/nginxcfg
- Owner: LukeShirnia
- Created: 2020-02-05T14:17:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-03-24T13:09:59.000Z (almost 5 years ago)
- Last Synced: 2024-11-15T20:34:31.324Z (3 months ago)
- Topics: centos, debian, linux, nginx, nginxcfg, redhat, rhel, serverblocks, ubuntu, vhosts, webserver
- Language: Python
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```