我在 xampp 上有本地網站(php),我想設置用戶密碼登錄保護,如下所示我在 .htaccess 中設置:Options -Indexesallow from 127.0.0.0AuthName "Password Protected Area" AuthUserFile /htaccess/.htpasswd AuthType BasicRequire valid-user在 .htpasswd 中我設置:user:$2y$10$L7cqU20P.fbfHwIL7cqU20PsvrhnN.Pb1rAxR50y但我在輸入用戶密碼后收到此錯誤:我用這個但不起作用。當我進入 http:127.0.0.1/hi該工作但當我進入子目錄時不工作(http:127.0.0.1/hi/test1)并給出 500 錯誤。
- 1 回答
- 0 關注
- 102 瀏覽
添加回答
舉報
0/150
提交
取消