您无权访问/magento/ [英] You don't have permission to access /magento/

查看:92
本文介绍了您无权访问/magento/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Magento的主机放在子文件夹/magento/中,当我尝试打开 http:/时/example.com/magento/我收到此错误

I've put on the host in magento in sub-folder /magento/ and when I try to open http://example.com/magento/ I got this error

禁止

您无权访问此服务器上的/magento.

You don't have permission to access /magento on this server.

我知道.htaccess文件中的内容,因为如果删除/重命名它,则可以打开它,但我不知道在.htaccess文件中到底能做什么.之前有人遇到过这个问题,可以提供一些解决方法吗? 我将发布默认.htaccess中未注释的行

I know is something from the .htaccess file because if I remove/rename it I can open it but I don't know what exactly can do this in .htaccess. Is someone had this problem before and can give some info how to fix it? I'll post lines that are not commented in default .htaccess

DirectoryIndex index.php
<IfModule mod_php5.c>

  php_flag magic_quotes_gpc off
  php_flag session.auto_start off

  php_flag suhosin.session.cryptua off

  php_flag zend.ze1_compatibility_mode Off

</IfModule>

<IfModule mod_security.c>

  SecFilterEngine Off
  SecFilterScanPOST Off
</IfModule>

<IfModule mod_ssl.c>
   SSLOptions StdEnvVars
</IfModule>

<IfModule mod_rewrite.c>

   Options +FollowSymLinks
   RewriteEngine on

RewriteRule ^api/rest api.php?type=rest [QSA,L]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteCond %{REQUEST_METHOD} ^TRAC[EK]
RewriteRule .* - [L,R=405]
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [L]

</IfModule>

Order allow,deny
Allow from all

<Files RELEASE_NOTES.txt>
    order allow,deny
    deny from all
</Files>

推荐答案

这看起来像文件权限问题.检查您的Web服务器是否有权在该magento文件夹上读取和执行.

This looks like file permission issue. Check if your web server has the rights to read and execute on that magento folder.

这篇关于您无权访问/magento/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆