Skip to content

Instantly share code, notes, and snippets.

@loujaybee
Created April 20, 2020 07:06
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save loujaybee/79fe045b8b30155ae0509685039911bb to your computer and use it in GitHub Desktop.
Save loujaybee/79fe045b8b30155ae0509685039911bb to your computer and use it in GitHub Desktop.
Basic Apache Web Server For Use In AWS User Data Script
#!/bin/bash
sudo su
yum -y install httpd
echo "<p> My Instance! </p>" >> /var/www/html/index.html
sudo systemctl enable httpd
sudo systemctl start httpd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment