pgadmin4, reverse proxy and apache

From: François Valenduc <francoisvalenduc(at)gmail(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: pgadmin4, reverse proxy and apache
Date: 2019-10-22 19:29:25
Message-ID: 7c7d5f1a-7099-ec17-624c-59525b14ce51@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

Good evening,

I am trying to run pgadmin4 with docker and reverse proxy with apache.
The page gives info for ngninx. I have tried this with apache:

<Location /pgadmin4>
        RedirectMatch permanent ^/pgadmin4$ /pgadmin4/
        ProxyPreserveHost On
        ProxyPass  http://127.0.0.1:5050/
        ProxyPassReverse http://127.0.0.1:5050/
        Header edit Location ^/ /pgadmin4/
        Header always set X-Script-Name /pgadmin4
</Location>

However, it doesn't work. The url is always truncated from
https://foo.com/pgadmin4/login?next=%2Fpgadmin4%2F to
https://foo.com/login?next=%2Fpgadmin4%2F

Does anybody know ho to solve this ?

Thanks in advance for your help,

François Valenduc

Browse pgadmin-support by date

  From Date Subject
Next Message Peer Sandtner 2019-10-23 08:49:46 pgadmin4/EnterpriseDB 9.0.4
Previous Message Michael Shapiro 2019-10-22 17:46:12 encrypted passwords?