phpMyAdmin 4.5.2
<Directory "C:/wamp64/www/">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.4/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# AllowOverride FileInfo AuthConfig Limit
#
AllowOverride all
#
# Controls who can get stuff from this server.
#
# onlineoffline tag - don't remove
Require local
# 解决除本地外,无法访问服务器的问题
Require all granted
</Directory>
本文介绍了如何通过配置Apache服务器的目录选项来实现对phpMyAdmin的安全访问。具体包括设置Options指令允许索引查看和符号链接跟踪,以及通过AllowOverride指令启用.htaccess文件中的权限配置。此外还详细说明了Require指令的使用,确保只有本地能够访问,从而解决外部访问服务器的问题。
348

被折叠的 条评论
为什么被折叠?



