magento:DirectoryIndex not allowed here

在window xp上使用magento。环境按magento需求的环境进行配置。

然后访问http://localhost/magento页面时出现以下错误:

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, chenbinhy@gmail.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

 

错误出在我之前对apache做过访问认证的修改。即把httpd.conf中的<Directory "D:/develop/Apache2.2/htdocs">下的

AllowOverride None

修改为:

AllowOverride AuthConfig

只要把这句修改过来,或者修改为

AllowOverride All

就可以成功访问了。

 

或着在httpd.conf添加以下配置项:(D:/develop/Apache2.2为apache的安装目录)

<Directory "D:/develop/Apache2.2/htdocs/magento">

 

    Options Indexes FollowSymLinks

 

    AllowOverride All

 

    Order allow,deny

    Allow from all

 

</Directory>

这样也可以成功访问

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值