小编Max*_*Max的帖子

我的公共网站名称和AD域名是一样的。如何从我的网络内部访问我的外部网站?

example.org在我的公司使用我的域名。我可以www.example.org用来查看我的网站。如果我http://example.org从我公司的外部尝试没有问题,但是如果我从内部尝试,我的 Windows DNS 服务器会提供域控制器的 IP。

我该如何解决这个问题?我是否可以阻止我的 DCexample.org在我的 DNS 中注册,这对我的环境是否会造成问题?

domain-name-system active-directory domain

16
推荐指数
2
解决办法
6万
查看次数

在后端使用 acl/缩小我的配置

在我的场景中,我必须根据包含的 url 字符串&mode=edit&mode=create在我的服务器之间切换服务器以平衡负载。我的配置是通过脚本从大约 100 个不同的 urls/ip 创建的。我目前使用一个前端和 2 个后端的方式很长,大量的健康检查对我的服务器不利......

我怎样才能把这些东西放在一起listen而不是frontend?我无法弄清楚如何在侦听中使用 ACL 来确定要使用的服务器。

frontend myFrontend

    bind 127.0.0.1:80
    bind 127.0.0.1:443 ssl crt /etc/haproxy/ssl/myFrontend/myFrontend.pem
    redirect scheme https if !{ ssl_fc }
    use_backend myBackend-edit if { url_sub &mode=edit } or { url_sub &mode=create }
    default_backend myBackend

backend myBackend

    server srv1 1.1.1.1:10201 cookie srv1 ssl check
    server srv2 2.2.2.2:10201 cookie srv1 ssl check backup
    server srv3 3.3.3.3:10201 cookie srv1 ssl check backup

backend myBackend-edit

    server srv1 1.1.1.1:10201 …
Run Code Online (Sandbox Code Playgroud)

load-balancing haproxy

5
推荐指数
1
解决办法
9579
查看次数