AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-312491

Justin's questions

Martin Hope
Justin
Asked: 2016-04-26 13:44:06 +0800 CST

为具有分布式流量的多个 Apache 服务器使用 Lets Encrypt SSL

  • 2

我在为两个不同服务器上设置的几个网站设置 Let's Encrypt 时遇到一些问题,并通过 HAProxy 将流量分配给它们。

服务器上有许多虚拟主机/域,所有这些都需要 SSL 证书。为了这篇文章,假设他们是:

  1. foo.some-site.com
  2. bar.some-site.com

这两个 A 记录都设置了两个 IP 地址。我可以使用 nwtools.com 或仅 nslookup 验证 A 记录foo.some-site.com和bar.some-site.com解析相同的两个 IP 地址。而且我知道 Let's Encrypt 要求虚拟主机使用有效记录,以便它可以进行查找。

我计划在两台服务器上为所有虚拟主机运行 Lets Encrypt 设置,其中一台运行良好,但是当我转到第二台时,出现错误:

[root@server httpd]# /opt/letsencrypt/letsencrypt-auto --apache -d foo.some-site.com
Checking for new version...
Requesting root privileges to run letsencrypt...
   /root/.local/share/letsencrypt/bin/letsencrypt --apache -d foo.some-site.com
Failed authorization procedure. foo.some-site.com (tls-sni-01): urn:acme:error:connection :: The server could not connect to the client to verify the domain :: Failed to connect to host for DVSNI challenge

IMPORTANT NOTES:
 - The following errors were reported by the server:

   Domain: foo.some-site.com
   Type:   connection
   Detail: Failed to connect to host for DVSNI challenge

   To fix these errors, please make sure that your domain name was
   entered correctly and the DNS A record(s) for that domain
   contain(s) the right IP address. Additionally, please check that
   your computer has a publicly routable IP address and that no
   firewalls are preventing the server from communicating with the
   client. If you're using the webroot plugin, you should also verify
   that you are serving files from the webroot path you provided.

这可能是因为它正在查找或尝试 curl foo.some-site.com,并且它可能被定向到另一台服务器?我不确定这有多重要,因为两者都有相同的 VHost,除非 LetsEncrypt 实际上正在监听它自己建立的连接......

让我失望的是它适用于其中一个很好(比如bar.some-site.com),那么为什么它适用于一个站点,但对于另一个具有完全相同设置的站点却失败了?

如果有人知道如何在两台不同的服务器上为相同的虚拟主机设置 Lets Encrypt,我们将不胜感激!

centos apache-2.4 centos7 haproxy lets-encrypt
  • 2 个回答
  • 3874 Views
Martin Hope
Justin
Asked: 2016-01-29 19:27:59 +0800 CST

配置 EC2 以允许内部和外部 DNS 查找

  • 1

我对 AWS 有点陌生,但我从事 Linux 管理员/工程师已经有一段时间了。我有一个关于 AWS DNS 设置的问题。

我在 Route53 内设置了一个托管区域,因此我可以将服务器配置为使用主机名,而无需为每条记录调整/etc/hosts文件。我进入 VPC 并创建了 DHCP 选项集并设置了我在 Route 53 托管区域中设置的域,以及那里列出的名称服务器。

这允许我对域中的服务器进行查找,但显然由于我从 DHCP 选项集中删除了默认名称服务器,因此它无法进行外部查找。

如果我使用默认名称服务器创建一个选项集,然后从分配给域的选项集中创建一个选项集,这也不起作用,它只使用resolv.conf中的第一个 NS 条目(这是我所期望的)

amazon-ec2
  • 1 个回答
  • 820 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve