httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mandy Singh" <>
Subject [users@httpd] htaccess and htpasswd
Date Tue, 07 Aug 2007 18:57:50 GMT
Hello Everyone,

On my website, I have content served off webroot.

All point to the same doc root.

I want to passwd protect but not the others (but they are
served off the same directory)

How can I do that using apache?

The following .htaccess file will passwd protect all the 3 sites since they
are from the same doc root.

  AuthUserFile /usr/local/web/data/users/unh/zap/pro/.htpasswd
  AuthGroupFile /dev/null
  AuthName AllowLocalAccess
  AuthType Basic
  require valid-user


View raw message