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);
}
Compatibility context
This procedure documents a PHP or Apache environment from its time. PHP 5.x and 7.x branches no longer receive standard support from the PHP project: do not deploy this configuration as is on a new server.
- First identify the versions actually installed and the loaded modules.
- Prepare a configuration backup and a rollback procedure.
- Validate the syntax, then the critical paths, on a version of PHP that is still maintained.
Reference: currently supported PHP versions.