The following columnphpmyadmin tutorialwill introduce you to the configuration file of phpmyadmin under Linux. I hope it will be helpful to friends in need!
Found the problem:
Configuration file of phpmyadmin under Linux
Alias /phpMyAdmin /usr/share/phpMyAdminAlias /phpmyadmin /usr/share/phpMyAdmin8d6e911cc78b4399bb06e9bc9a4e2cae 96f43e571e7f2c41e08e9b757d2b6151 # Apache 2.4 604ac8a140ee09e0144a517215827786 Require ip 127.0.0.1 Require ip ::1 849657258bb2481f8b491c81ddb0f99e 2071f931c9870be1bebed0bdda8305e7 01a405fc203b268f92b6a33fec343a08 # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 2071f931c9870be1bebed0bdda8305e7bb15ed4aadeed04b3991578461de0768
My Apache version is 2.4, the above is /etc/httpd/ There is a section in conf.d/phpMyAdmin.conf. I don’t quite understand the specific meaning. Please explain it.
The explanation is as follows:
# 虚拟目录 http://localhost/phpMyAdmin 指向 /usr/share/phpMyAdmin Alias /phpMyAdmin /usr/share/phpMyAdmin # 虚拟目录 http://localhost/phpmyadmin 指向 /usr/share/phpMyAdmin Alias /phpmyadmin /usr/share/phpMyAdmin # 目录相关设置# mod_authz_core.c 是 apache 2.3 之后新增的权限验证模块 # 在这里用判断这个模块是否存在的方法区分 apache 版本 # 如果存在说明当前 apache 版本至少是 2.3 # 下面一行注释表明这里在 apache 版本是 2.4 的时候会执行 # Apache 2.4 # 新式的权限控制写法 满足以下任一条件才能访问 # 如果不存在 mod_authz_core.c 说明当前 apache 版本低于 2.3# 用户的请求 IP 是本机 ( IPv4 ) Require ip 127.0.0.1 # 用户的请求 IP 是本机 ( IPv6 ) Require ip ::1 # 权限控制区块结束 # 模块判断区块结束# 下面一行注释表明这里在 apache 版本是 2.2 的时候会执行 # Apache 2.2 # mod_authz_host 提供旧式的权限控制写法 Deny 在前表示白名单模式 Order Deny,Allow # 禁止除去下面 Allow 之外的所有请求 Deny from All # 允许本地访问 ( IPv4 ) Allow from 127.0.0.1 # 允许本地访问 ( IPv6 ) Allow from ::1 # 模块判断区块结束 # 目录设置区块结束
Furthermore, this is not the configuration file of phpMyAdmin... This is Apache's...
The above is the detailed content of What does the content in phpMyAdmin.conf mean?. For more information, please follow other related articles on the PHP Chinese website!