Giter Club home page Giter Club logo

nginx-scripts's Introduction

Bold Leads Nginx Scripts

General

  • All scripts exit with 0 on success or 1 otherwise

nginx-add-php-vhost.sh

Usage:

nginx-disable-vhost.sh -h <FQDN> [-v] [-y]
nginx-disable-vhost.sh --host <FQDN> [--verbose] [--yes]

Use the -y option in scripts to prevent the script asking if it should restart Nginx. It will then restart Nginx itself if there are no errors.

nginx-disable-vhost.sh

Use this script to prevent Nginx from responding to requests to a fully qualified domain name. Technically, it removes the symbolic link from sites-enabled/ while leaving the actual file residing in sites/available.

nginx-disable-vhost.sh -h <FQDN> [-v] [-y]
nginx-disable-vhost.sh --host <FQDN> [--verbose] [--yes]

nginx-enable-vhost.sh

Use this script to reverse the effects of nginx-disable-vhost.sh.

nginx-enable-vhost.sh -h <FQDN> [-v] [-y]
nginx-enable-vhost.sh --host <FQDN> [--verbose] [--yes]

nginx-remove-vhost.sh

Use this script to reverse the effects of nginx-disable-vhost.sh.

nginx-remove-vhost.sh -h <FQDN> [-v] [-y]
nginx-remove-vhost.sh --host <FQDN> [--verbose] [--yes]

test.sh

Use this script to test all scripts

nginx-remove-vhost.sh -h <FQDN> [-v] [-y]
nginx-remove-vhost.sh --host <FQDN> [--verbose] [--yes]

nginx-scripts's People

Contributors

idometeor 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.