I experienced the same thing.
if you access PMA using IP, there will be no problem with 502 Bad Gateway. If you use a domain name then a 502 Bad Gateway message will appear.
Hope someone can provide the solution
ex.
domain.tld:2030/pma >>> 502 Bad Gateway
127.0.0.1:2030/pma >>> pma can open...