403 因 AH01630 导致禁止:服务器配置拒绝客户端:/data

403 因 AH01630 导致禁止:服务器配置拒绝客户端:/data

我在执行以下操作时收到此标题错误消息我从 Apache2 的错误日志中找到了教程的 Postfix 管理部分中的指南,并尝试导航到该网站https://mailadmin.example.com/setup.php(也只是用 example.com 替换了我的网站名称),因为我收到了 403 Forbidden。

AH00112: Warning: DocumentRoot [/data/www/mailadmin.example.com/html/public] does not exist
AH00163: Apache/2.4.41 (Ubuntu) OpenSSL/1.1.1f configured -- resuming normal operations
AH01630: client denied by server configuration: /data

这是我的虚拟主机配置sudo nano /etc/apache2/sites-available/mailadmin.example.com-le-ssl.conf

<IfModule mod_ssl.c>
<VirtualHost *:443>
        ServerName mailadmin.example.com
        ServerAlias mailadmin.example.com
        ServerAdmin [email protected]

        DocumentRoot /data/www/mailadmin.example.com/html/public
        <Directory /data/www/mailadmin.example.com/html/public>
                Options -Indexes +FollowSymLinks
                DirectoryIndex index.php
                AllowOverride All
                Require all granted
        </Directory>

        RewriteEngine on
# Some rewrite rules in this file were disabled on your HTTPS site,
# because they have the potential to create redirection loops.

#       RewriteCond %{SERVER_NAME} =mailadmin.example.com
#       RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]

Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem
SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem
</VirtualHost>
</IfModule>

我不知道这是什么/data意思,也找不到这样的文件夹。我不明白为什么我会收到 403 Forbidden 错误。

相关内容