我正在尝试在我的 Apache2 AWS ECS 上发出 Lts 加密 ssl。
我确认域名的 www 和非 www 版本都正确指向服务器,但是我收到一个错误,我不确定如何修复。
Type: unauthorized
Detail: Invalid response from http://example.com/.well-known/acme-challenge/VR1csQL-Tp-tPMqMtmG1EcLWncgxMdov4MGZgq2RqQY
[3.210.25.136]: "<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML
2.0//EN\">\n<html><head>\n<title>404 Not
Found</title>\n</head><body>\n<h1>Not Found</h1>\n<p"
我的虚拟主机文件如下所示
<VirtualHost my-ip-here:80>
ServerName example.com
ServerAlias www.example.com
DocumentRoot /var/www/example
<Directory /var/www/example>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
Alias /.well-known/acme-challenge/ /var/www/example/.well-known/acme-challenge/
<Directory /var/www/example/.well-known/acme-challenge/>
AllowOverride None
Require all granted
Satisfy Any
</Directory>
ErrorLog ${APACHE_LOG_DIR}/example.com-error.log
CustomLog ${APACHE_LOG_DIR}/example.com-access.log combined
</VirtualHost>