• be sure to AllowOverride All in /etc/httpd/conf/httpd.conf -- see whiteboard
  • apache comes with built-in poorman's authentication: htpasswd
  • use only over SSL (SSLRequireSSL)
  • four directives: AuthUserFile, AuthGroupFile, AuthName, AuthType
  • AuthUserFile /home/jeremy/.htpass
    # the name of the file that contains the passwords -- add with htpasswd
    AuthGroupFile /dev/null
    # usually set to /dev/null
    AuthName "My Web Page's Secret Section"
    # the text that appears on the login box
    AuthType Basic
    
    require valid-user
    #without the above line, ANY user/pass will work!
    
    INDEX
    PREVIOUS
    Master Index