Category Archives: Linux

[转]lighttpd配置webdav

apt-get install lighttpd lighttpd-mod-webdav apache2-utils
#install lighttpd and additional module lighttpd-mod-webdav
#apache2-utils:htpasswd to generate webdav password file, lighttpd also reuse it

chown www-data:www-data /var/run/lighttpd/
#[......]

继续阅读

搭建simpledns作为dns服务器并自定义hosts映射

1、安装
pip install simpledns
2、配置hosts文件

注意,这里可以使用一个自己定义的hosts文件,而不一定要用系统的,这一点是很赞的。

因为你可以做一个第三方的dns给其他人使用而不会污染自己的电脑:-)
# vim my_hosts
xx.xx.xx.xx abc.com
3、启动simpledns
sudo simpledns -b 0.0.0.0 -p 53 --hosts-file ./my_hosts
在上面的命令中,0.0.0.0[......]

继续阅读