Skip to content

Instantly share code, notes, and snippets.

@keithmorris
Created May 28, 2014 13:40
Show Gist options
  • Save keithmorris/de92f95bacd9fdda8bf3 to your computer and use it in GitHub Desktop.
Save keithmorris/de92f95bacd9fdda8bf3 to your computer and use it in GitHub Desktop.

Revisions

  1. keithmorris created this gist May 28, 2014.
    33 changes: 33 additions & 0 deletions password.config
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,33 @@
    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