yes you should adapt in /etc/fail2ban/filter.d/phpmyadmin.conf
with fail2ban enabled, you could probably uses the default alias, or we can do a nfr:
-set a web modifiable alias
-templatise the filter following the alias
can you test the default jail in a VM for ns6 and ns7 please