#!/bin/bash # This script sets up an Apache web server and configures a styled HTML page # install httpd (Linux 2 version) yum update -y yum install -y httpd systemctl start httpd systemctl enable httpd # Create an HTML file with CSS styling cat > /var/www/html/index.html < My AWS Website

Welcome to My Website

This is the main content area of your website, served from $(hostname -f).

EOF