`
refinement_code
  • 浏览: 3757 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论
文章列表
# 代理 81 端口的服务 到 xxx.domain.com # lighttpd.conf $HTTP["host"] == "xxx.domain.com" { proxy.balance = "hash" proxy.server = (""=> ( ("host" =>"127.0.0.1","port"=>81) ) ) }
现在要改用 nginx 做 web server,但是有一些老项目用的 lighttpd。 可以用 nginx 反向代理功能,把一些请求叫给 lighttpd 处理 1 修改 lighttpd 的配置文件 # /etc/lighttpd/lighttpd.conf # 只允许本机访问 server.bind = "localhost" # 从81端口启动 server.port = 81 2 修改 nginx 的配置文件 # /usr/local/nginx/conf/nginx.conf http { # 新的 ...
Global site tag (gtag.js) - Google Analytics