Giter Club home page Giter Club logo

nginxforwardscript's Introduction

nginxForwardScript

Automatic generation of reverse-proxy configurations for complex clusters of web-servers. The basic idea is to reverse-proxy single domains to a bunch of backend VMs while making use of nginx build in loadbalancing mechanisms.

Probably works on debian only. Minor changes may be required to run on different platforms: Location of config files & service configuration test (not mandatory)

Usage:

  • for complete automation copy everything to /etc/nginx
    • if you don't want to do this, you can also symlink manually from another dir to sites-available
    • if you don't know what you are doing, then don't do it
  • look at the example configuration in loadbalancing/example.de
    • the comments in the example should be self-explaining. if not, feel free to tell me.
    • adapt to your needs or create more configs in the loadbalancing directory. each config represents one (sub)domain
  • execute ./generateNginxConfigsForLoadbalancing.sh
  • take a look at the generated sites-available
  • reload nginx ( on debian: service nginx reload )

If you want to use HTTP-authentication, you may want to install htpasswd from the apache2-utils package, or change the way the htpasswd_* files are created in the script.

nginxforwardscript's People

Contributors

stangls avatar

Watchers

 avatar  avatar

Forkers

patademahesh

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.