Created
May 28, 2014 13:40
-
-
Save keithmorris/de92f95bacd9fdda8bf3 to your computer and use it in GitHub Desktop.
AWS Password protection
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
files: | |
"/etc/httpd/conf.d/allow_override.conf": | |
mode: "000644" | |
owner: ec2-user | |
group: ec2-user | |
encoding: plain | |
content: | | |
<Directory /var/www/html/myproject/> | |
AllowOverride AuthConfig | |
</Directory> | |
"/etc/httpd/conf.d/auth.conf": | |
mode: "000644" | |
owner: ec2-user | |
group: ec2-user | |
encoding: plain | |
content: | | |
<Directory /var/www/html/myproject/> | |
AuthType Basic | |
AuthName "Myproject Prototype" | |
AuthUserFile /etc/httpd/.htpasswd | |
Require valid-user | |
</Directory> | |
"/etc/httpd/.htpasswd": | |
mode: "000644" | |
owner: ec2-user | |
group: ec2-user | |
encoding: plain | |
content: | | |
myusername:mypassword | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment