Apache 404 从子文件夹获取页面时出错

Apache 404 从子文件夹获取页面时出错

关于这个问题有很多很多问题,我找不到答案。简单的网站 SSL,只需设置即可。我的配置:

<VirtualHost *:80>
        ServerName mywebserver.io
        Redirect / https://mywebserver.io
</VirtualHost>
<VirtualHost *:443>
   ServerAdmin [email protected]
   ServerName mywebserver.io
   SSLEngine on
   SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire
   SSLCertificateFile /var/www/ssl/STAR_mywebserver_io.crt
   SSLCertificateKeyFile /var/www/ssl/mywebserver.io.key
   SSLCertificateChainFile /var/www/ssl/SectigoRSADomainValidationSecureServerCA.crt
   DocumentRoot /var/www/html
   <Directory />
      Options +FollowSymLinks +Indexes
      AllowOverride all
      Require all granted
   </Directory>
   ErrorLog /var/log/alt.error.log
   LogLevel warn
   CustomLog /var/log/alt.access.log combined
 </VirtualHost>

Web folder structure:
/etc/www/html
     |------>subfolder
                |------>index.html

所有文件夹中均无 .htaccess 文件,文件权限设置为 0777,整个文件夹归 www-data 所有。浏览 https://mywebserver/subfolder 时出现 404 错误。有人能帮我看一下吗?

相关内容