This script is used to install Nginx, followed by creating a basic index.html file.
The webpage will display the hostname, local IP address as well as "I am a basic web server created by Sysadmintutorials, enjoy" text
Run the following command:
- wget -O - https://raw.githubusercontent.com/sysadmintutorials/ubuntu-basic-webserver/refs/heads/main/install-and-setup.sh | sudo bash
- NEEDRESTART_MODE=a - Automatically restarts services, post Nginx install