大龙的博客

常用链接

统计

最新评论

使用lighttpd做代理服务器

移动有些内部服务器不能访问,所以就用lighttpd做了下代理。
/etc/lighttpd/lighttpd.conf配置如下:
server.port = 8081
server.document-root = "/var/www/probind/"
#proxy.debug = 1
proxy.balance = "hash"
proxy.server = ( "" =>
(
( "host" => "x.x.x.x", "port" => 80 )
)
)
server.protocol-http11="enable"
server.modules=("mod_indexfile", "mod_dirlisting", "mod_staticfile","mod_proxy")
把上面的x.x.x.x换成ip即可。


posted on 2011-10-16 15:40 大龙 阅读(875) 评论(0)  编辑 收藏 引用


只有注册用户登录后才能发表评论。
网站导航: 博客园   IT新闻   BlogJava   知识库   博问   管理