xampp的mysql出现Access_XAMPP提示 Access forbidden情况的处理

Access forbidden!

You don't have permission to access the requested directory. There is either no index document or the directory is read-protected.

If you think this is a server error, please contact the webmaster.

Error 403

test.abc.net

Apache/2.4.10 (Win32) OpenSSL/1.0.1i PHP/5.6.3

当前的站点是定义在httpd-vhost.conf里的,

ServerAdmin webmaster@dummy-host2.example.com

DocumentRoot "D:/Documents/abc/php/basic/web"

ServerName youai1.cm

ErrorLog "logs/abc.net-error.log"

CustomLog "logs/dummy-abc.net-access.log" commonRewriteEngine on

# 如果请求的是真实存在的文件或目录,直接访问

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

# 如果请求的不是真实文件或目录,分发请求至 index.php

RewriteRule . index.php

这时在httpd.conf需要加上这一段代码:

Options Indexes FollowSymLinks Includes ExecCGI

AllowOverride All

Require all granted

或在上面的VirtualHost里加上这一段,

然后重启xampp,问题解决。

转:http://blog.csdn.net/xundh/article/details/45664315

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值