2009-11-11 35 views

回答

2
AuthName "Restricted Area" 
AuthType Basic 
AuthUserFile /path/to/file/.htpasswd 

<Files "protected.html"> 
Require valid-user 
</Files> 

如果您想使用Sinatra進行身份驗證,請查看this faq

相關問題