28 lines
739 B
Plaintext
28 lines
739 B
Plaintext
Alias /phpMyAdmin /srv/www/html/phpMyAdmin
|
|
|
|
AddExternalAuth pwauth /usr/sbin/pwauth
|
|
SetExternalAuthMethod pwauth pipe
|
|
|
|
<Location /phpMyAdmin>
|
|
# force https
|
|
<If "%{HTTPS} != 'on'">
|
|
RewriteEngine On
|
|
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
|
|
</If>
|
|
# require auth
|
|
<Else>
|
|
AuthType Basic
|
|
AuthName "phpMyAdmin"
|
|
AuthBasicProvider external
|
|
AuthExternal pwauth
|
|
Require valid-user
|
|
</Else>
|
|
</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:/etc/alternatives/php-fpm.sock|fcgi://localhost"
|
|
</FilesMatch>
|
|
</Directory>
|