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

adhoc query form doesn't work with reverse proxy #1

Open
riznob opened this issue Jun 12, 2018 · 0 comments
Open

adhoc query form doesn't work with reverse proxy #1

riznob opened this issue Jun 12, 2018 · 0 comments

Comments

@riznob
Copy link

riznob commented Jun 12, 2018

I am using nginx as a reverse proxy to host phppgadmin at a different context root, /phppgadmin/. The form to run an adhoc query has an action="/display.php". This leads to a 404 because the form action does not represent the path needed due to the reverse proxy.

Steps to reproduce:
Download the attached docker-compose.yml.txt and nginx.conf.txt files to a common directory.
Rename each file, removing the .txt extension.
Run docker-compose up.
Open a web browser to http://localhost:8000/phppgadmin/
Create a table, then navigate to the Browse tab of the new table.
Click the submit button. Observe the 404.

docker-compose.yml.txt
nginx.conf.txt

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

1 participant