发布于 5年前
                LAMP The requested URL /index.html was not found on this server.
造成这个错误的原因可能有以下几点:
1. httpd.conf 配置文件下 DocumentRoot 未配置正确;
2. domain.conf 配置文件如下 (domain.conf 是针对多域名的解析文件)
<VirtualHost *:80>
    DocumentRoot "/var/tp6/public"
    ServerName www.tp6.com
  <Directory "/var/tp6/public">
      Options FollowSymLinks ExecCGI
      AllowOverride All
      Order allow,deny
      Allow from all
      Require all granted
      DirectoryIndex index.php index.html error/index.html
  </Directory>
</VirtualHost>
Directory也需要配置,不然也会出现这个错误,很多人就是这里未配置。
3. ThinkPHP 文件缺少 .htaccess 文件
 
             
             
             
             
            