title: phpPgAdmin access denied for remote access on ubuntu 14.04
body: <p>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. My /etc/apache2/conf.d/phppgadmin file looks like this:</p>
  
  <pre><code>Alias /phppgadmin /usr/share/phppgadmin
  
  &lt;Directory /usr/share/phppgadmin&gt;
  
  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
  
  &lt;IfModule mod_php5.c&gt;
    php_flag magic_quotes_gpc Off
    php_flag track_vars On
    #php_value include_path .
  &lt;/IfModule&gt;
  &lt;IfModule !mod_php5.c&gt;
    &lt;IfModule mod_actions.c&gt;
      &lt;IfModule mod_cgi.c&gt;
        AddType application/x-httpd-php .php
        Action application/x-httpd-php /cgi-bin/php
      &lt;/IfModule&gt;
      &lt;IfModule mod_cgid.c&gt;
        AddType application/x-httpd-php .php
        Action application/x-httpd-php /cgi-bin/php
      &lt;/IfModule&gt;
    &lt;/IfModule&gt;
  &lt;/IfModule&gt;
  
  &lt;/Directory&gt;
  </code></pre>
  
  <p>Also have a file 000-default in /etc/apache2/sites-enabled while looks like:</p>
  
  <pre><code>&lt;Directory "/usr/share/phpPgAdmin"&gt;
          AuthUserFile /etc/phpPgAdmin/.htpasswd
          AuthName "Restricted Area"
          AuthType Basic
          require valid-user
  &lt;/Directory&gt;
  </code></pre>
  
  <p>And I've modified /etc/phppgadmin/.htpasswd appropriately. </p>
  
  <p>Nonetheless, when I try to log into it remotely I get a 403: Forbidden error. </p>
  
  <p>Any ideas? Further, could this error be imposed by the type of network I'm on? (it's a campus network). </p>