| 為什麼home directory權限是711 | |
|---|---|
| user(擁有者)是7 | 你不認為擁有者必須有所有的權限嗎? |
| group(群組)是1 | 0也可以 |
| other(其它)是1 | 這裡最重要1,如果你設為5(rx)小心資料全部被看光 |
| 為什麼public_html權限是755 | |
|---|---|
| user(擁有者)是7 | 同上,如果你不高興設為7那使用者常會來煩你 |
| group(群組)是5 | 0也可以 |
| other(其它)是5 | 5(rx),如果只設r你試試看不行就是不行 |
| .htaccess |
在apache設定的目錄,編輯這個檔案 AuthName "xxx" 你給的名字 AuthType BASIC AuthUserFile xxx 密碼檔所在是 |
| htpasswd |
htpasswd -nm 檔名
使用者名稱 |
| httpd.conf |
設定檔中必須有 AccessFileName .htaccess 及設定該目錄 <Directory xxxx> Options Indexes FollowSymLinks AllowOverride all </Directory> |