Last Updated: February 25, 2016
·
5.939K
· streunerlein

Solve phpmyadmin path problems behind (apache) proxy

This applies also to other proxies (varnish, nginx, ...), you have to correct the path in the phpmyadmin config.inc.php which lies normally in the phpmyadmin directory or in case you installed via aptitude on ubuntu (precise and higher) in /etc/phpmyadmin.

Fix it by adding this line to config.inc.php:

$cfg['PmaAbsoluteUri'] = 'http://www.example.com/pma/';

Note that you also specify the directory where phpmyadmin lies in. www.example.com is the hostname as seen from the outside, the one you use to finally access phpmyadmin.

Source: http://jesin.tk/installing-phpmyadmin-behind-varnish/