phppgadmin-docker icon indicating copy to clipboard operation
phppgadmin-docker copied to clipboard

Apache config does not allow non-localhost

Open danwdart opened this issue 9 years ago • 4 comments

The "Require local" in the apache config makes it difficult to use with things such as nginx proxy or https. Is there a flag to not have to use it? After all to use in docker I'm exposing port 80 - to 172.17.x.x - which isn't local.

Cheers

danwdart avatar Apr 29 '16 18:04 danwdart

This is how it needs to be configured: https://help.ubuntu.com/community/phpPgAdmin#Access

According to that guide it should needed to replace allow from 127.0.0.0/255.0.0.0 ::1/128 with allow from all in /etc/apache2/conf.d/phppgadmin

Edit: /etc/apache2/conf.d/phppgadmin is added by the Dockerfile So the ./phppgadmin.conf file.

Edit: Strange Both are in the config, the localhost line and allow from all

luckydonald avatar Oct 17 '16 16:10 luckydonald

Maybe via Allow from env=APACHE_NON_LOCALHOST, enabling it when $APACHE_NON_LOCALHOST is set?

Allow Documentation When Allow from env=env-variable is specified, then the request is allowed access if the environment variable env-variable exists. When Allow from env=!env-variable is specified, then the request is allowed access if the environment variable env-variable doesn't exist.

luckydonald avatar Oct 17 '16 17:10 luckydonald

The existing config was never used. Thats why. Probably linux changed paths or something.

luckydonald avatar Oct 17 '16 18:10 luckydonald

Good thing I saw #8 before I made #9 myself :/

luckydonald avatar Oct 17 '16 18:10 luckydonald