Skip to content

Instantly share code, notes, and snippets.

@tacitphoenix
Forked from mikepfeiffer/apache.sh
Created July 30, 2020 18:24
Show Gist options
  • Save tacitphoenix/0e94962da23cde0763d0462d0924db9f to your computer and use it in GitHub Desktop.
Save tacitphoenix/0e94962da23cde0763d0462d0924db9f to your computer and use it in GitHub Desktop.
EC2 Bootstrap Script for Apache
#!/bin/bash
yum update -y
yum install -y httpd
echo '<h1>Hello World</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