我可以访问我的Postgres数据库中phpPgAdmin的与http://localhost/phppgadmin/没有权限访问/ phpPgAdmin的/这台服务器
但是当我尝试在phpPgAdmin的打开我的数据库,我的IP地址http://10.128.0.128/phppgadmin/它不能继续工作时:
Forbidden
You don't have permission to access /phppgadmin/ on this server.
Apache/2.4.7 (Ubuntu) Server at 10.128.0.128 Port 80
有没有人可以解决我的问题?谢谢。
我editted phpPgAdmin的文件到:
DirectoryIndex index.php
AllowOverride None
order deny,allow
deny from all
allow from 10.128.0.128/255.0.0.0 ::1/128
allow from all
但它仍然无法正常工作....
我用'Postgres的对于Postgres用户 – adn
的/etc/apache2/conf.d/phppgadmin .conf配置文件默认情况下允许任何人访问PhpPgAdmin而不是localhost。 添加一条线,使一个新的能够为你的IP规则,所以它看起来是这样的: <位置/ phpPgAdmin的> 订单拒绝,允许 所有 拒绝允许来自[您的客户端IP] –