Code Monkey home page Code Monkey logo

Comments (13)

dddddddddd000nnnnnnnnnn avatar dddddddddd000nnnnnnnnnn commented on May 21, 2024 1

目前我看到包含这两个参数的状态是注释掉的,是不是解除注释后重新构建容器就能生效?
image

from safeline.

dddddddddd000nnnnnnnnnn avatar dddddddddd000nnnnnnnnnn commented on May 21, 2024 1

websocket并没有正常。故障依旧

from safeline.

Trenck avatar Trenck commented on May 21, 2024 1

我在用的版本是2.5版本,这个版本的配置文件里多了一个 include custom_params/backend_x;
看起来可以在这个文件里自定义一些配置

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

OK these params will be added in the next release.

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

诶刚看了下 nginx conf,目前是已经有这两个参数的?师傅看下 /path/to/safeline-ce/resources/nginx/proxy_params

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

XFF 在 server 中包含了,这里就注释掉了。看下 /path/to/safeline-ce/resources/nginx/site-enabled/IF_backend_xxx

from safeline.

dddddddddd000nnnnnnnnnn avatar dddddddddd000nnnnnnnnnn commented on May 21, 2024

我按照路径打开了配置文件,确实只有XFF。那如果说XFF包含了,那就有可能出现故障的是proxy_set_header Host ,我能否将其参数由$host_fixed改为$host?会不会产生其他的影响?

image

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

可以先把 proxy_params 改成 $host 试试,影响是说哪方面的?因为需要 nginx reload,所以有可能会断流?

from safeline.

dddddddddd000nnnnnnnnnn avatar dddddddddd000nnnnnnnnnn commented on May 21, 2024

根据您的指引,我修改了参数后重启容器,目前显示容器是健康状态的,WAF管理后台也能正常访问,但所有的代理设置均不生效,无法访问业务页面。

image

image

from safeline.

dddddddddd000nnnnnnnnnn avatar dddddddddd000nnnnnnnnnn commented on May 21, 2024

复原设置后就WAF功能就恢复正常了

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

是说,复原到默认设置的情况下,websocket 代理也正常了哈?

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

根据您的指引,我修改了参数后重启容器,目前显示容器是健康状态的,WAF管理后台也能正常访问,但所有的代理设置均不生效,无法访问业务页面。

image

image

师傅这个地方 nginx conf 改得有问题。不是 include $host,而是 proxy_set_header $host;

from safeline.

zclaiqcc avatar zclaiqcc commented on May 21, 2024

我理解可以尝试:

  1. 先把 proxy_params 文件中的 proxy_set_header Host 注释掉
  2. 在 IF_backend_2 中手动 proxy_set_header Host donn.com.cn;
  3. reload nginx
  • docker exec safeline-tengine nginx -t
  • docker exec safeline-tengine nginx -s reload
    然后看看访问 https://:5001 是否可以请求到业务。

也确认下:我看上游服务器配置的是 192.168.11.11:5001,WAF IP 不是 192.168.11.11 吧?换句话说,WAF 和业务服务器不在同一台机器上吧?。如果在统一台机器上的话,端口会冲突。

from safeline.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.