トップ 新規 編集 差分 一覧 ソース 検索 ヘルプ PDF RSS ログイン

publicfile

publicfiles

[djb] [daemontools]

pw groupadd ftp -g 10080
pw useradd ftp -u 10080 -g ftp -d /dev/null -s /nonexistent
pw useradd ftplog -u 10081 -g ftp -d /dev/null -s /nonexistent
/usr/local/bin/configure ftp ftplog /path/to/http www.example.jp virtual.example.jp 192.168.1.1
mkdir -p /usr/ports/www/publicfile/files/
cat /usr/ports/www/publicfile/files/patch-aa << EOF
*** filetype.c.orig     Tue Nov  9 16:23:46 1999
--- filetype.c  Thu Oct  3 04:37:08 2002
***************
*** 32,37 ****
--- 32,38 ----
      else if (str_equal(x,".jpeg")) result = "image/jpeg";
      else if (str_equal(x,".png")) result = "image/png";
      else if (str_equal(x,".mpeg")) result = "video/mpeg";
+     else if (str_equal(x,".pac")) result = "application/x-ns-proxy-autoconfig";

      if (!stralloc_cats(contenttype,result)) _exit(21);
    }
EOF

最終更新時間:2003年03月31日 12時45分09秒