patw 的筆記、生活、隨筆
Posts tagged pure-ftp
pure-ftp 與 apache 使用者個人目錄
十二月 2nd
需求:使用 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/*>
(下略)
改為如此,並且設定標籤內的相關屬性,唯讀、可瀏覽目錄方式等。大致如此。
近期迴響