Пример конфигурации виртуального хоста для phpmyadmin. Для корректной работы не забываем установить нужные модули, и включить их.
DocumentRoot "/usr/share/PhpMyAdmin5"
ServerName ВашХост
<Directory "/usr/share/PhpMyAdmin5">
Options FollowSymLinks
DirectoryIndex index.php
AddType application/x-httpd-php .php
php_flag magic_quotes_gpc Off
php_flag track_vars On
php_flag register_globals Off
php_admin_flag allow_url_fopen Off
php_value include_path .
php_admin_value upload_tmp_dir /var/lib/PhpMyAdmin5/tmp
php_admin_value open_basedir /usr/share/PhpMyAdmin5/:/etc/PhpMyAdmin5/:/var/lib/PhpMyAdmin5/
Order Deny,Allow
Deny from All
# Список ip разрешенных для доступа.
Allow from 1.1.2.2 3.3.4.4
AuthType Basic
AuthName "PhpMyAdmin5"
AuthUserFile /etc/PhpMyAdmin5/htpasswd.setup
Require valid-user
# Authorize for setup
AuthType Basic
AuthName "PhpMyAdmin5 Setup"
AuthUserFile /etc/PhpMyAdmin5/htpasswd.setup
Require valid-user
# Disallow web access to directories that don't need it
Order Deny,Allow
Deny from All
ErrorLog ${APACHE_LOG_DIR}/phpmyadmin_error.log
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog ${APACHE_LOG_DIR}/PhpMyAdmin5.log combined
# SSL Engine Switch:
SSLEngine on
#Ваш сертификат и ключ
SSLCertificateFile /etc/apache2/PhpMyAdmin5.crt
SSLCertificateKeyFile /etc/apache2/PhpMyAdmin5.key
<FilesMatch "\.(cgi|shtml|phtml|php)$">
SSLOptions +StdEnvVars
SSLOptions +StdEnvVars
# "force-response-1.0" for this.
BrowserMatch "MSIE [2-6]" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
# MSIE 7 and newer should be able to use keepalive
BrowserMatch "MSIE [17-9]" ssl-unclean-shutdow