patw 的筆記、生活、隨筆
pure-ftp 與 apache 使用者個人目錄
需求:使用 pure-ftpd,並且希望能使用 http://server/~user/ 的方式,供個人用戶使用。
方法:
pure-ftpd 可採虛擬帳號方式,因此 apache 內的 UserDir 寫法也需變更。
如此篇所示範:
<IfModule mod_userdir.c> UserDir /home/ftp/* </IfModule>
其中 ftp 表 pure-ftpd 所採用的一組實體帳號。
而下方:
# # Control access to UserDir directories. The following is an example # for a site where these directories are restricted to read-only. # <Directory /home/ftp/*>
(下略)
改為如此,並且設定標籤內的相關屬性,唯讀、可瀏覽目錄方式等。大致如此。
| Print article | This entry was posted by patw on 2009年十二月2日 at 2:55 下午, and is filed under FreeBSD. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |