Code Monkey home page Code Monkey logo

nginxse-virtualhost-generator's Introduction

nginx-virtualhost-generator

A CLI-based tool that helps you generate NGINX server block configuration files in a few seconds.

alt text

Prelude

If you are tired from creating and configuring virtual hosts and directories on NGINX and wasting time and resources on syntax errors and unexpected HTTP response codes with php, nodejs, etc .. Or if JSON is not your cup of tea.. This tool is for you! Use this bash script to generate NGINX server block files for domains, sub-domains, load-balancing, and other common tasks after a fresh system setup.

How it works Once executed, the script performs the following tasks:
  1. Verifies NGINX installation
  2. Verifies NGINX configuration files/directories and detects conflics
  3. Generates server configuration based on user input
  4. Create and save configuration files based on the repos/NGINX installation

How to use it

You can either clone this repos to your local workstation/server or download the Script file and run it.

sh nginxse.sh

Or

chmod +x nginxse.sh
./nginxse.sh

You will be promped to provide the settings you might need.

A short demo is available on imgur

Supported distros

Tested on Debian, CentOS, Fedora, and ubuntu. It should work fine with any GNU/Linux with a clean nginx install.

Contribute

Please don't hesitate to help with your feedback or if you want to help to improve it, feel free to fork.

LICENSE

If you are too lazy to read the license, it basically tells you to not modify and redistribute this code unless you are planning to keep it as a free software AND mention the original author.

This software is GPL licensed. The work based off of it must be released as open source.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

nginxse-virtualhost-generator's People

Contributors

tahahichri avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.