vhost-stack/etc/apache2/conf-available/phpMyAdmin.conf
Matthew Saunders Brown fdad410e58 update for ubuntu 22.04
2022-08-29 15:32:56 -07:00

20 lines
553 B
Plaintext

Alias /phpMyAdmin /srv/www/html/phpMyAdmin
AddExternalAuth pwauth /usr/sbin/pwauth
SetExternalAuthMethod pwauth pipe
<Location /phpMyAdmin>
AuthType Basic
AuthName "phpMyAdmin"
AuthBasicProvider external
AuthExternal pwauth
Require valid-user
</Location>
# this is to force the default fpm, so we don't end up trying to use a virtualhosts jailed fpm which won't work
<Directory "/srv/www/html/phpMyAdmin">
<FilesMatch ".+\.ph(ar|p|tml)$">
SetHandler "proxy:unix:/run/php/php8.1-fpm.sock|fcgi://localhost"
</FilesMatch>
</Directory>