# 如何開啟 Xampp 中的 webdav 功能 ## 修改 httpd.conf ```xml= Alias /raw /home/user/public_html/ <Location /raw> DAV On ### 能用瀏覽器查看檔案清單 Options Indexes IndexOptions +Charset=UTF-8 +FancyIndexing +FoldersFirst ### 選擇加密方法(Basic/Digest) AuthType Digest ### Digest Realm AuthName [CUSTOM REALM] ### 預先建立的 Auth File Path AuthUserFile [PATH TO AUTH FILE] Require valid-user ### 尋找資料夾中的 index file DirectoryIndex disabled </Location> ``` ## 建立 Auth File Basic Method 只需要 username & password,儲存是用 md5 hash 方法 Digest Method 需要 username、password、realm ### Basic Method: 新建檔案存在 /opt/lampp/etc/basic.users ```bash sudo /opt/lampp/bin/htpasswd -c /opt/lampp/etc/basic.users <username> ``` 按下 Enter 後會要求輸入密碼 ### Digest Method: 新建檔案存在 /opt/lampp/etc/digest.users ```bash sudo /opt/lampp/bin/htpasswd -c /opt/lampp/etc/digest.users <realm> <username> ``` 按下 Enter 後會要求輸入密碼
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up