Hostgator Cpanel VPS服务器上的Yii2部署不工作

Hostgator Cpanel VPS服务器上的Yii2部署不工作,yii2,cpanel,yii2-advanced-app,Yii2,Cpanel,Yii2 Advanced App,我有一个域名abcdefgh.com托管在Hostgator Cpanel VPS服务器上。它在public_html/abcdefgh.com中有一个文件夹 下面是部署我的yii2网站的图片,但我无法在网站上获得结果 我以前在共享主机上部署Yi2应用程序的方式与复制粘贴文件夹的方式相同,但在VPS服务器中,我很想知道这有什么问题 1。Hostgator Cpanel VPS服务器部署 2。输出 3。服务器错误日志 Mon Apr 17 22:48:01.706049 2017] [auto

我有一个域名abcdefgh.com托管在Hostgator Cpanel VPS服务器上。它在public_html/abcdefgh.com中有一个文件夹

下面是部署我的yii2网站的图片,但我无法在网站上获得结果

我以前在共享主机上部署Yi2应用程序的方式与复制粘贴文件夹的方式相同,但在VPS服务器中,我很想知道这有什么问题

1。Hostgator Cpanel VPS服务器部署

2。输出

3。服务器错误日志

Mon Apr 17 22:48:01.706049 2017] [autoindex:error] [pid 32221] [client 117.208.9.75:49825] AH01276: 
Cannot serve directory /home/abc/public_html/abcdefgh.com/: No matching DirectoryIndex 
(index.php,index.php5,index.php4,index.php3,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.phtml,index.shtml,index.xhtml,index.html,index.htm,index.wml,Default.html,Default.htm,default.html,default.htm,home.html,home.htm) found, and server-generated directory index forbidden by Options directive
  • .htaccess文件

    Options -Indexes
    
    # Rewrite engine
    RewriteEngine On 
    
    # condition with escaping special chars
    RewriteCond $1 !^(index\.php|robots\.txt|favicon\.ico)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
    

  • 从.htaccess文件中删除此项:

    Options -Indexes
    

    保存文件并重试

    您的.htaccess规则是什么?已使用.htaccess文件详细信息更新了问题。我正在尝试上载我的
    yii2应用程序
    ,但无法上载。我添加了一个新的,你能看看吗?非常感谢你的回复!博格丹,。我会尽力让你知道的!然后尝试使用Options+indexnope,它仍然不起作用。在chrome控制台内,根据错误消息显示“加载资源失败:服务器响应状态为500(内部服务器错误)”:Cannot service directory/home/abc/public_html/abcdefgh.com/public_html文件夹中没有这样的文件夹。现在还不清楚这到底是一个实际的错误还是旧的错误