Laravel Godday apache hosting说你没有权限访问/laravel/在这个服务器上


Laravel Godday apache hosting is saying You don't have permission to access /laravel/ on this server

我正在使用主机,想在这个主机上运行一个 Laravel 5.1 项目,但是当我使用我的PHP版本是5.5

http://pndhub.com/laravelss/

然后它向我展示了这个

Forbidden
You don't have permission to access /laravel/ on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

但是相同的代码适用于我的另一个主机帐户服务器这是我的.htaccess代码

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>
    RewriteEngine On
    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)/$ /$1 [L,R=301]
    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>

如果我单击cpanel上的错误,则它会显示此错误

[autoindex:error] AH01276: Cannot serve directory /home/myhosting/public_html/laravel/: No matching DirectoryIndex (index.html.var,index.htm,index.html,index.xhtml,index.wml,index.perl,index.pl,index.plx,index.ppl,index.cgi,index.jsp,index.js,index.jp,index.php4,index.php3,index.php,index.phtml,index.shtml,default.htm,default.html,home.htm,index.php5,Default.html,Default.htm,home.html,welcome.html) found, and server-generated directory index forbidden by Options directive

虚拟主机的目录必须是

/home/myhosting/public_html/laravel/public