Giter Club home page Giter Club logo

ngcp's Introduction

##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                
unpark 


This 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

ngcp's People

Contributors

shakaran avatar

Watchers

 avatar  avatar  avatar

Forkers

yohanson sitedata

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.