查看完整版本: 保护一个文件夹.htaccess

伶俜 2008-7-4 19:44

保护一个文件夹.htaccess

.htaccess内容
ErrorDocument 403 http://mon_site_web/erreurs/403.htm<br />
ErrorDocument 401 http://mon_site_web/erreurs/401.htm<br />
AuthUserFile D:\www\htdocs\mdp\.htpasswd<br />
AuthName “Accès réservé aux amis”<br />
AuthType Basic<br />
Satisfy All<br />
order deny,allow<br />
deny from all<br />
allow from 203.55.125.178<br />
Require valid-user<br />

建立密码htpasswd -c .passwds toto
页: [1]
查看完整版本: 保护一个文件夹.htaccess