在NGINX服务器上使用Haproxy。不听港口80

发布于 2025-01-26 00:08:12 字数 624 浏览 2 评论 0原文

最近,我设置了服务器&使用Haproxy。其他所有内容都顺利运行,但是端口80没有连接。这是Haproxy配置文件。 ESP试图续订Certbot时会出现问题。我在这里想念什么?

frontend backend.sample.com
        bind *:80

        # Test URI to see if its a letsencrypt request
        acl letsencrypt-acl path_beg /.well-known/acme-challenge/
        use_backend letsencrypt-backend if letsencrypt-acl
        bind 64.123.456.124:6684 ssl crt /etc/haproxy/certs/backend.sample.com.pem
        default_backend webapps

backend webapps
        balance roundrobin
        server app01 64.123.456.124:5684

backend letsencrypt-backend
   server letsencrypt 127.0.0.1:54321  ```

Recently i setup a server & using haproxy. Everything else runs smoothly but port 80 is not connecting. Here is the haproxy config file. Esp gives problem when certbot tries to renew. What am I missing here?

frontend backend.sample.com
        bind *:80

        # Test URI to see if its a letsencrypt request
        acl letsencrypt-acl path_beg /.well-known/acme-challenge/
        use_backend letsencrypt-backend if letsencrypt-acl
        bind 64.123.456.124:6684 ssl crt /etc/haproxy/certs/backend.sample.com.pem
        default_backend webapps

backend webapps
        balance roundrobin
        server app01 64.123.456.124:5684

backend letsencrypt-backend
   server letsencrypt 127.0.0.1:54321  ```

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文