在phpmyadmin的默认配置中,在Ubuntu上使用ISPconfig-3。奇怪的事情发生了,"Order,Allow“和”Deny“为子目录(阻止所有请求)工作,但对它们的根不起作用。
/usr/share/phpmyadmin (不工作)
/usr/share/phpmyadmin/安装(工作)
/usr/share/phpmyadmin/库(工作)
/usr/share/phpmyadmin/setup/lib (工作)
你能解释一下这种行为吗?我错过了什么吗?
当然,我根本不打算阻止它,但是当它不能阻止所有的IP,除了我的,我试着测试阻塞所有,但它失败了!
注: Ubuntu版本12.04.5LTS
这里是/etc/apache2/conf.d/fpmyadmin.conf
# phpMyAdmin default Apache configuration
Alias /phpmyadmin /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
Options FollowSymLinks
DirectoryIndex index.php
......
Order Deny,Allow
Deny from All
</Directory>
# Authorize for setup
<Directory /usr/share/phpmyadmin/setup>
Order Deny,Allow
Deny from All
.......
</Directory>
# Disallow web access to directories that don't need it
<Directory /usr/share/phpmyadmin/libraries>
Order Deny,Allow
Deny from All
</Directory>
<Directory /usr/share/phpmyadmin/setup/lib>
Order Deny,Allow
Deny from All
</Directory>发布于 2016-03-26 17:32:12
我想这是一个配置复制。"/etc/apache2/sites-available/ispconfig.conf"!包的主配置文件(/etc/apache2/conf.d/phpmyadmin.conf)配置目录"/usr/share/ PhpMyAdmin ",并在“/etc/apache2/sites-available/ispconfig.conf”!中重新配置目录ISPConfig。老实说,我并没有预料到这种复制,但我选择禁用“/etc/apache2/sites available/ispconfig.conf”中的复制,现在限制生效了。
ISPConfig是伟大的,但我认为开发人员应该考虑这个小问题,而且应该是一样的。
https://askubuntu.com/questions/750263
复制相似问题