#!/bin/bash # Nginx Install NEEDRESTART_MODE=a apt install -y nginx systemctl start nginx systemctl enable nginx # Create Index.html echo "

Welcome to $(hostname) : $(hostname -I | awk '{print $1}')

I am a basic web server created by Sysadmintutorials, enjoy." | tee /var/www/html/index.html