全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 3454|回复: 2

[nginx] 查了老外资料看到KLOXO lighttpd反向代理设置办法

[复制链接]
发表于 2012-12-26 11:42:22 | 显示全部楼层 |阅读模式
本帖最后由 jumpsky 于 2012-12-26 11:44 编辑

在 /etc/lighttpd/vhosts (KLOXO面板直接在lighttpd伪静态规则里添加)里加入
$HTTP["host"] =~ "(^sample.com)$" {
  proxy.server = (
      "/sr/" => ( (
          "host" => "x.x.x.x",
          "port" => 80
      ) )
  )
}

如果是虚拟目录,则是
$HTTP["url"] =~ "^/webmail" {
    # add host header
    setenv.add-request-header ( "Host" => "example2.org" )

    proxy.server =  ("/webmail/" => (
        # this entry should link to example2.org
        ("host" => "1.2.3.4", "port" => 80)
    ))
}


请问大神们 这样是对的吗?
发表于 2012-12-26 11:43:09 | 显示全部楼层
lighttpd的反代是次品, 和nginx的不是一个档次的
 楼主| 发表于 2012-12-26 12:42:18 | 显示全部楼层
万能的LOC不顶用了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-4-24 00:40 , Processed in 0.078959 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表