Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache config does not allow non-localhost #7

Open
danwdart opened this issue Apr 29, 2016 · 4 comments
Open

Apache config does not allow non-localhost #7

danwdart opened this issue Apr 29, 2016 · 4 comments

Comments

@danwdart
Copy link

danwdart commented Apr 29, 2016

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

@luckydonald
Copy link

luckydonald commented Oct 17, 2016

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
Copy link

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 added a commit to luckydonald-forks/phppgadmin-docker that referenced this issue Oct 17, 2016
@luckydonald
Copy link

luckydonald commented Oct 17, 2016

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

@luckydonald
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants