https://github.com/shakaran/ngcp
A improved fork of nginxcp.com by Quijost (Ángel Guzmán Maeso)
https://github.com/shakaran/ngcp
cpanel cpanel-api cpanel-servers nginx panel sysadmin
Last synced: 3 months ago
JSON representation
A improved fork of nginxcp.com by Quijost (Ángel Guzmán Maeso)
- Host: GitHub
- URL: https://github.com/shakaran/ngcp
- Owner: shakaran
- License: agpl-3.0
- Created: 2018-07-31T23:37:14.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-02T02:08:54.000Z (almost 7 years ago)
- Last Synced: 2025-01-02T06:43:55.749Z (5 months ago)
- Topics: cpanel, cpanel-api, cpanel-servers, nginx, panel, sysadmin
- Language: C
- Size: 13.7 MB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: LICENSE
Awesome Lists containing this project
README
##NginxInstaller
This script automates installation, and sets up hooks to add nginx vhosts when accounts are added(or removed).
##Usage
Installation
./nginxinstaller [install | uninstall]
Installer Files
Cpanel Hooks
Cpanel has functionality to hook into certain actions performed within Cpanel. This list of files are self-explanatory. They add/remove nginx vhosts depending on the action. Hooks are located in /usr/local/cpanel/hooks/
addaddondomain
deladdondomain
addsubdomain
delsubdomain
park
unparkThis file is used for installing mod_rpaf during EA.
/scripts/after_apache_make_install
The default nginx.conf
/etc/nginx/nginx.conf
This script run after account creation or restorepkg. It creates a nginx vhost for that domain.
/scripts/postwwwacct
Simple function for getting data out of WHM via it's XML API
/scripts/xmlapi.py
This is where the magic happens. This is the set of functions used for actually writing out the vhost files.
/scripts/createvhosts.py
Custom init script
/etc/init.d/nginx
The installer script.
nginxinstaller