错误消息“禁止您访问/在此服务器上没有权限”我自己配置了我的apache,并尝试加载phpMyAdmin在虚拟主机上,但我收到了:禁止您访问/访问此服务器我的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. You have been warned.
#
# Configuration and logfile names: If the filenames you specify for many
# of the server's control files begin with "/" (or "drive:/" for Win32), the
# server will use that explicit path. If the filenames do *not* begin
# with "/", the value of ServerRoot is prepended -- so "logs/foo.log"
# with ServerRoot set to "C:/Program Files (x86)/Apache Software Foundation/Apache2.2" will be interpreted by the
# server as "C:/Program Files (x86)/Apache Software Foundation/Apache2.2/logs/foo.log".
#
# NOTE: Where filenames are specified, you must use forward slashes
# instead of backslashes (e.g., "c:/apache" instead of "c:\apache").
# If a drive letter is omitted, the drive on which httpd.exe is located
# will be used by default. It is recommended that you always supply
# an explicit drive letter in absolute paths to avoid confusion.和vhosts.conf:NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
DocumentRoot i:/projects/webserver/__tools/phpmyadmin/
ServerName dbadmin.tools
</VirtualHost>
3 回答

大话西游666
TA贡献1817条经验 获得超14个赞
禁止您没有访问/在此服务器上的权限
httpd.conf
.
# # Each directory to which Apache has access can be configured with respect # to which services and features are allowed and/or disabled in that # directory (and its subdirectories). # # First, we configure the "default" to be a very restrictive set of # features. # <Directory "/"> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all # the cause of permission denied </Directory>
Deny from all
Allow from all
<VirtualHost *:80> .... # Set access permission <Directory "/path/to/docroot"> Allow from all </Directory> .... </VirtualHost>
mod_authz_host
(Require
<VirtualHost *:80> .... # Set access permission <Directory "/path/to/docroot"> Require all granted </Directory> .... </VirtualHost>
- 3 回答
- 0 关注
- 1618 浏览
相关问题推荐
添加回答
举报
0/150
提交
取消