Discuss your project
Linux Apache

Install PHPMyAdmin with Varnish

Simply expand the configuration of varnish: /etc/varnish/default.vclAnd add a directive to exclude the domain: in the sub vcl_recv routine add: if (req.http.Host == “phpmyadmin.p1-caue.partitech.com”) { return (pass); } If phpmyadmin is installe...

Simply expand the configuration of varnish:
/etc/varnish/default.vcl

And add a directive to exclude the domain:
in the sub vcl_recv routine
add:
if (req.http.Host == “phpmyadmin.p1-caue.partitech.com”) {
return (pass);
}
If phpmyadmin is installed in a subdirectory of a vhost:
if (req.url ~ “^/pma”) {
return (pass);
}

If there is a problem with cookie creation, you need to add the following directive in the sub vcl_fetch directive:
if (req.http.Host == “phpmyadmin.p1-caue.partitech.com”) {
return (hit_for_pass);
}
or
if (req.url ~ “^/pma”) {
return (hit_for_pass);
}

Share this article