Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- yum update -y
- sudo yum install -y httpd24
- sudo service httpd start
- sudo chkconfig httpd on
- sudo groupadd www
- sudo usermod -a -G www ec2-user
- sudo chown -R root:www /var/www
- sudo chmod 2775 /var/www
- sudo chown ec2-user /var/www/noindex/index.html
- sudo echo `ec2-metadata -i` > /var/www/noindex/index.html
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement