Difference between revisions of "Password Protect"

From John Freier
Jump to: navigation, search
(Created page with 'Create new .htaccess file, and use the following example below. AuthUserFile /var/www/html/private/.htpasswd AuthGroupFile /dev/null AuthName "My Private Directory" AuthType...')
 
Line 5: Line 5:
 
  AuthName "My Private Directory"
 
  AuthName "My Private Directory"
 
  AuthType Basic
 
  AuthType Basic
 
+
 
  <Limit GET POST>
 
  <Limit GET POST>
 
  require valid-user
 
  require valid-user
 
  </Limit>
 
  </Limit>

Revision as of 15:05, 27 April 2010

Create new .htaccess file, and use the following example below.

AuthUserFile /var/www/html/private/.htpasswd
AuthGroupFile /dev/null
AuthName "My Private Directory"
AuthType Basic

<Limit GET POST>
require valid-user
</Limit>