2010-07-26 15 views

Respuesta

7

El archivo /etc/apache2/conf.d/phppgadmin.conf configuración por defecto mantiene nadie más que localhost de acceso a PhpPgAdmin .

Añadir una línea que hace una nueva regla de permiso para su IP, por lo que se ve algo como esto:

<Location /phppgadmin> 
    Order deny,allow 
    Deny from all 
    Allow from [Your client IP] 
</Location> 

Por cierto, este tipo de pregunta es probablemente más adecuada para el sitio de la hermana de stackoverflow serverfault.com

+0

gracias por esta respuesta. Me ahorró mucho tiempo :) Te mereces otro voto positivo ... – itsols

+0

Tienes que reiniciar el servidor Apache, Hasta que no puedas acceder a los cambios que has hecho sudo service apache2 start –

3

Este es un tema Apache (o servidor web). Su directorio phppgadmin tiene un archivo .htaccess que no permite a TODOS excepto localhost.

Necesitas o bien configurarlo para permitir que todos o Permitir (IP movible aquí)

2

Sé que esta es una vieja pregunta, pero desde que me encontré tratando de arreglar el "Error al cargar el recurso: el servidor respondió con un estado de 403 (Prohibido)" error al intentar acceder a phpPgAdmin desde otra computadora y las respuestas dadas no funcionó para mí, quería compartir mi solución.

Ubuntu: 17.04; phpPgAdmin: 5,1

Solución: comentario a cabo Requerir locales en /etc/apache2/conf-enabled/phppgadmin.conf y reiniciar Apache (sudo servicio apache2 reload)

<Directory /usr/share/phppgadmin> 

<IfModule mod_dir.c> 
DirectoryIndex index.php 
</IfModule> 
AllowOverride None 

# Only allow connections from localhost: 
# Require local 

<IfModule mod_php.c> 
    php_flag magic_quotes_gpc Off 
    php_flag track_vars On 
    #php_value include_path . 
</IfModule> 
<IfModule !mod_php.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> 

/etc/apache2/conf-enabled/phppgadmin.conf

Cuestiones relacionadas