Skip to content

Instantly share code, notes, and snippets.

@jsparmani
Created July 11, 2021 10:15
Show Gist options
  • Save jsparmani/afeef7088bad2f8fd1fa6a274cd54782 to your computer and use it in GitHub Desktop.
Save jsparmani/afeef7088bad2f8fd1fa6a274cd54782 to your computer and use it in GitHub Desktop.
HTTP Server user data script
#! /bin/bash
yum update -y
yum install httpd -y
echo "<h1>index.html</h1>" > /var/www/html/index.html
systemctl start httpd
systemctl enable httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment