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.
- 📁 nginx_setup/ Root directory
- 📄 README Project overview, usage, installation instructions
- 📄 LICENSE Open-source license
- 📄 TASK Task description
- 📄 CONTRIBUTORS
- 📄 webserver_setup Main script for Nginx setup (bash)
Ensure that your system meets the following requirements:
- Bash, git and curl installed
- Linux based system
- How to clone the repository:
git clone https://github.com/baruchgu/nginx_setup.git
cd nginx_setup- Steps to run the setup tool:
chmod +x webserver_setup.sh
./webserver_setup.shDuring the run the tool installs the following packages
✅ nginx
✅ apache2-utils
✅ nginx-extras
✅ libpam0g-dev
✅ libpam-modules
✅ fcgiwrap
✅ spawn-fcgi
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./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 scriptingMany of code and ideas were copied from README files of Tal in his GitHub projects. Thanks 👍
