Alias /phppgadmin /var/www/phppgadmin <Directory /var/www/phppgadmin> <IfModule mod_authz_core.c> # Apache 2.4 <RequireAny> Require ip 127.0.0.1 Require ip ::1 </RequireAny> </IfModule> <IfModule !mod_authz_core.c> # Apache 2.2 Order Deny,Allow Deny from All Allow from 127.0.0.1 Allow from ::1 </IfModule> ErrorDocument 403 "Access denied per /etc/httpd/conf/sites.d/phppgadmin.conf" </Directory>