没有权限访问/ phpPgAdmin的/这台服务器
问题描述:
我可以访问我的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
但它仍然无法正常工作....
答
你有没有登录为root
用户 时,你是不是会发生正常root用户
答
/etc/apache2/conf.d/phppgadmin.conf
配置文件默认情况下允许除localhost之外的任何人访问PhpPgAdmin。
添加一条线,让您的IP一个新的允许规则,所以它看起来是这样的:
<Location /phppgadmin>
Order deny,allow
Deny from all
Allow from [Your client IP]
</Location>
+0
我已经编辑了phppgadmin文件,但它仍然不起作用。有没有解决方法?谢谢 – adn
我用'Postgres的对于Postgres用户 – adn
的/etc/apache2/conf.d/phppgadmin .conf配置文件默认情况下允许任何人访问PhpPgAdmin而不是localhost。 添加一条线,使一个新的能够为你的IP规则,所以它看起来是这样的: 订单拒绝,允许 所有 拒绝允许来自[您的客户端IP] –