长亭百川云 - 技术讨论

WAF 如何将域名负载到ip+路径

发布于 4 个月前

# 雷池 WAF
# 技术咨询

发布于 4 个月前

头像

Surou

更新于 4 个月前

1

0

比如域名 baidu.com 上游服务器地址 http://172.18.39.164:4000/main/xx/42766

但是雷池配置完,还是指向了 根路径 http://172.18.39.164:4000,导致子路径{/main/xx/42766}没有转入

头像

Surou

更新于 4 个月前

1

0

使用 nginx是可以的,类似配置如下

1server
2{
3    listen 9017;
4    server_name 18.167.109.xxx;
5    location / {
6      proxy_pass http://172.18.39.164:4000/main/xx/42766;
7      proxy_http_version 1.1;
8      proxy_set_header Upgrade $http_upgrade;
9      proxy_set_header Connection "Upgrade";
10      proxy_set_header Host $host;
11      proxy_set_header X-Real-IP $remote_addr;
12      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
13      proxy_set_header X-Forwarded-Proto $scheme;
14    }
头像

齐天大圣孙悟空

管理员

更新于 4 个月前

0

0

不支持

头像

Yosef

更新于 2 个月前

会考虑实现吗?

头像
关注或联系我们
添加百川云公众号,移动管理云安全产品
咨询热线:
4000-327-707
百川公众号
百川公众号
百川云客服
百川云客服

Copyright ©2024 北京长亭科技有限公司
icon
京ICP备2024055124号-2