让我们加密ACME-Challenge Apache 404

时间:2017-09-30 12:08:40

标签: apache .htaccess

我想通过webroot目录获取Lets Encrypt-Certificate。我正在运行带有ispconfig的Ubuntu 16.04服务器。

我注意到我无法通过网络访问acme-challenge文件夹。

  • http://example.com/ ==>提供默认主机index.html

  • http://example.com/.well-known ==>可以到达,文件可以通过网络访问

  • http://example.com/.well-known/acme-challenge ==> 403,许可被拒绝

  • http://example.com/.well-known/acme-challenge/test.html ==> 404未找到

.well-knownacme-challenge有root.root和755. test.html有644

vhost的配置如下:

<VirtualHost _default_:80>
<Directory /var/www/html>
ServerName example.com
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
            # Clear PHP settings of this website
            <FilesMatch ".+\.ph(p[345]?|t|tml)$">
                    SetHandler None
            </FilesMatch>
            Options +FollowSymLinks
            AllowOverride All
                            Require all granted
</Directory>
</VirtualHost>

有人知道为什么无法访问acme-challenge文件夹吗?

0 个答案:

没有答案
相关问题