ChinaUnix.net
相关文章推荐:

lighttpd chroot

1、安装php时请一定要选择fastcgi的安装模式 注:在lang/php4 里用 make config看一下,选择fastcgi # cd /usr/ports/www/lighttpd # make install clean 安装完成后 /usr/local/lib/lighttpd //mod 的文件 /usr/local/sbin/lighttpd //执行文件 1、系统自动启动lighttpd # ee /etc/rc.conf 加入 lighttpd_enable="YES" 2、启动lighttpd # /usr/local/sbin/lighttpd -f /usr/local/etc/lighttpd.conf 或 # /usr/local/etc/...

by chenyangbo - BSD文档中心 - 2007-10-25 17:40:27 阅读(1025) 回复(0)

相关讨论

chroot(8) OpenBSD System Manager's Manual chroot(8) NAME chroot - change root directory SYNOPSIS chroot [-g group,group,...] [-u user] newroot [command] DESCRIPTION The chroot command changes its root directory to the supplied directory newroot and executes command, if supplied, or an interactive copy of the user's shell. The chroot command ...

by atyu30 - BSD文档中心 - 2007-10-18 17:57:50 阅读(879) 回复(0)

符号链接(symlink)无法进入chroot系统 硬链接(hard link)无法进入文件系统 本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/28922/showart_358149.html

by atyu30 - BSD文档中心 - 2007-08-11 15:27:50 阅读(877) 回复(0)

就是类似于apache的head.html功能,在index of/里显示的文字, http://apache.chinaunix.net 看看这个网页就知道了,lighttpd如何实现这个功能呢!麻烦帮忙了 显示文件夹,并且上面还有文字,该如何设置,谢谢帮忙

by 3645636 - 服务器应用 - 2008-12-28 01:40:11 阅读(1826) 回复(4)

我在/home/tom下建立了bin,sbin,etc./usr/bin登录,然后把/bin/ls,/bin/sh,/bin/bash拷贝到/home/tom/bin下面,然后我以root身份执行chroot /home/tom时,报/bin/sh找不到,但我直接执行/home/tom/bin/sh是可以的,请问如何解决?谢谢

by davidcsc - Shell - 2007-08-07 13:11:12 阅读(1458) 回复(3)

chroot使用 chroot就是Change Root,也就是改變程式執行時所參考的根目錄位置。 一般的目錄架構: / /bin /sbin /usr/bin /home chroot的目錄架構: /hell/ /hell/bin /hell/usr/bin /hell/home * 為何要chroot? 1.限制被chroot的使用者所能執行的程式,如SetUid的程式,或是會造成Load 的 Compiler等等。 2.防止使用者存取某些特定檔案,如/etc/passwd。 3.防止入侵者/bin/rm -rf /。 4.提供Guest服務以及處罰不...

by huxh - Solaris文档中心 - 2005-12-06 16:29:56 阅读(1278) 回复(0)

按照《用SSL构建一个安全的Apache》一贴试着chroot apache,可是在启动apache时,总是提示用户错,我已经把passwd、group文件拷到了/chroot/etc/下了,试过几次了,还是不明白,请高手指教一二,谢了!

by binzai - 服务器应用 - 2003-05-25 21:53:16 阅读(1309) 回复(0)

我想像vsftp一样chroot sftp用户 按照此文方法 http://mail.incredimail.com/howto/openssh/addons/sftp-chroot.howto.txt 操作,用户还是没有只在自己家目录 这个文档针对的是3。0。2版本,我用的是4。2p1版本 难道补丁不能通用吗? 下面是上文提到的补丁,有兴趣的朋友们研究一下 http://mail.incredimail.com/howto/openssh/addons/sftp-chroot.diff thx

by 南非蜘蛛 - 服务器架设 - 2005-10-28 23:54:56 阅读(1053) 回复(1)

server:lighttpd 双网卡 域名假设:www.XXX.com 教育网121.168.1.2 公网113.100.200.200 查了相关资料,按照如下方式做了双ip的bind: /*下面为公网ip*/ server.bind = "113.100.200.200" server.port = 80 server.document-root = "/home/lighttpd/XXX.com/http" /*下面为教育网ip*/ $SERVER["socket"] == "121.168.1.2:80" { server.document-root = "/home/lighttpd/XXX.com/http" server.errorlog = "/var/log/lighttp...

by buptds - 服务器应用 - 2009-04-15 20:02:07 阅读(1623) 回复(4)

今天检查lighttpd 错误日志内容发现有很多下面的记录,lighttpd 版本为1.4.19 。各位知道是什么原因造成的吗?系统本机的时候是正确的! 2008-11-04 11:36:29: (http-header-glue.c.333) strptime() failed on 0 2008-11-04 11:36:31: (http-header-glue.c.333) strptime() failed on 0 2008-11-04 11:36:39: (http-header-glue.c.333) strptime() failed on 0 2008-11-04 11:36:42: (http-header-glue.c.333) strptime() fail...

by duanxuandijita - 服务器应用 - 2008-11-12 09:50:43 阅读(2232) 回复(2)

编写 插件 *I)F#l.P-D9O*Hvx 在开始编写插件之前,应该先熟悉 lighttpd 中两个基本数据结构以及他们所在 文件 : v#M;Dw(A kpv7V;ng buffer ( buffer.c ) array ( array.c ) global structures ( base.h ) 接下来需要阅读:BSD爱好者乐园wOcH wm4EC http://www.lighttpd.net/documentation/state.html (在lighttpd的'doc/'目录下可以找到,名字为state.txt) http://www.lighttpd.net/documentation/plugins.html (在light...

by 剑心通明 - BSD文档中心 - 2008-11-04 09:49:49 阅读(1644) 回复(0)