我自己配置了Apache,并尝试在虚拟主机上加载phpMyAdmin,但我收到了:
403禁止您无权访问此服务器上的/
我的httpd.conf
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure
# consult the online docs. …Run Code Online (Sandbox Code Playgroud) 我是WAMP的新手,今天我刚刚安装了它.
设置运行良好,localhost似乎工作,但当我尝试访问phpMyAdmin时,我收到此错误:
禁止
您无权访问此服务器上的/ phpmyadmin /.
为什么我使用phpMyAdmin获取此权限访问错误?
我使用的是Windows 7.
我在C:\ wamp中安装了wamp,我想在E:\ zf2中创建DocumentRoot文件夹作为虚拟域www.skeltonapplicaiton-zf2.local的虚拟主机.
在httpd.conf文件中未提交包含conf/extra/httpd-vhosts.conf的行.
httpd-vhosts.conf代码是
<VirtualHost *:80>
ServerName www.skeltonapplicaiton-zf2.local
ServerAlias skeltonapplicaiton-zf2.local
DocumentRoot "E:\zf2"
<directory "E:\zf2">
Options Indexes FollowSymLinks
AllowOverride all
Order Deny,Allow
Deny from all
Allow from all
</directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
在hosts文件中添加了条目
127.0.0.1 www.skeltonapplicaiton-zf2.local
127.0.0.1 skeltonapplicaiton-zf2.local
Run Code Online (Sandbox Code Playgroud)
然后重新启动wamp服务器.
在浏览器中打开www.skeltonapplicaiton-zf2.local后,我收到了错误消息
Forbidden
You don't have permission to access / on this server.
Run Code Online (Sandbox Code Playgroud)
Apache错误日志是
[Fri Aug 08 11:00:41.940054 2014] [authz_core:error] [pid 7256:tid 796] [client 127.0.0.1:59500] AH01630: client denied by server configuration: E:/zf2/
Run Code Online (Sandbox Code Playgroud)