[英]phpPgAdmin access denied for remote access on ubuntu 14.04
I've looked at quite a few answers for this, but all seem apparently out of date. 我已经看了很多答案,但是似乎所有答案都过时了。 I'm using Ubuntu 14.04 and Apache 2.4.7.
我正在使用Ubuntu 14.04和Apache 2.4.7。 My /etc/apache2/conf.d/phppgadmin file looks like this:
我的/etc/apache2/conf.d/phppgadmin文件如下所示:
Alias /phppgadmin /usr/share/phppgadmin
<Directory /usr/share/phppgadmin>
DirectoryIndex index.php
AllowOverride all
order deny,allow
#deny from all
#allow from 127.0.0.0/255.0.0.0 ::1/128
Require all granted
<IfModule mod_php5.c>
php_flag magic_quotes_gpc Off
php_flag track_vars On
#php_value include_path .
</IfModule>
<IfModule !mod_php5.c>
<IfModule mod_actions.c>
<IfModule mod_cgi.c>
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php
</IfModule>
<IfModule mod_cgid.c>
AddType application/x-httpd-php .php
Action application/x-httpd-php /cgi-bin/php
</IfModule>
</IfModule>
</IfModule>
</Directory>
Also have a file 000-default in /etc/apache2/sites-enabled while looks like: 在/ etc / apache2 / sites-enabled中也有一个文件000-default,看起来像:
<Directory "/usr/share/phpPgAdmin">
AuthUserFile /etc/phpPgAdmin/.htpasswd
AuthName "Restricted Area"
AuthType Basic
require valid-user
</Directory>
And I've modified /etc/phppgadmin/.htpasswd appropriately. 而且我已经适当修改了/etc/phppgadmin/.htpasswd。
Nonetheless, when I try to log into it remotely I get a 403: Forbidden error. 但是,当我尝试远程登录时,出现403:禁止错误。
Any ideas? 有任何想法吗? Further, could this error be imposed by the type of network I'm on?
此外,此错误可能是由于我所使用的网络类型引起的吗? (it's a campus network).
(这是一个校园网络)。
Try is 尝试是
sudo cp /etc/apache2/conf.d/phppgadmin /etc/apache2/conf-enabled/phppgadmin.conf
Restart httpd2 (Apache) 重新启动httpd2(Apache)
sudo /etc/init.d/apache2 restart
or 要么
sudo service apache2 start
For Ubuntu 14.04 对于Ubuntu 14.04
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.