Skip to content

Latest commit

 

History

18 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test GitHub contributors GitHub issues

NGINX setup tool

NGINX logo


Project Overview

Automated way to setup and configure NGINX Web server on Linux VMWare machine without manual steps.
✅ check if Nginx is installed. If not - install
✅ setup user-directories
✅ setup virtual host domain with name gived by promt
✅ setup authentication
✅ setup authentication with PAM
✅ setup CGI scripting ability
✅ Interactive and CLI input arguments are supported
✅ The tool runs under the root credentials, if not root - sudo is used
✅ Correct exit status is provided. 0 - sucess, else - fails.

📁 Folder Structure

Getting Started

Pre-Requisites:

Ensure that your system meets the following requirements:

  • Bash, git and curl installed
  • Linux based system

Cloning the Repository:

  • How to clone the repository:
git clone https://github.com/baruchgu/nginx_setup.git
cd nginx_setup

Running the Setup:

  • Steps to run the setup tool:
chmod +x webserver_setup.sh
./webserver_setup.sh

Dependecies

During the run the tool installs the following packages
✅ nginx
✅ apache2-utils
✅ nginx-extras
✅ libpam0g-dev
✅ libpam-modules
✅ fcgiwrap
✅ spawn-fcgi

Usage and Examples:

Help:

Print the usage menu and exit

./webserver_setup.sh -h  

Output:

NGINX Web server setup tool:
	Options:
	i) Install NGINX server 
	v) Configure Virtual Hostings
	u) Configure the user-dir
	a) Setup server authentication
	p) Setup server authentication with PAM
	s) Setup CGI scripting
	q) quit

CLI arguments:

./webserver_setup.sh -i  #Install NGINX server
./webserver_setup.sh -v  #Configure Virtual Hostings
./webserver_setup.sh -u  #Configure the user-dir
./webserver_setup.sh -a  #Setup server authentication
./webserver_setup.sh -p  #Setup server authentication with PAM
./webserver_setup.sh -s  #Setup CGI scripting

License

License

🙇 Credit

Many of code and ideas were copied from README files of Tal in his GitHub projects. Thanks 👍

About

NGINX Web server setup tool

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages