<Directory "/var/www/html/phpMyAdmin">
RewriteEngine on
RewriteBase /
RewriteCond %{SERVER_NAME} !YOUR_PHPMYADMIN_DOMAIN_HERE
RewriteCond %{REQUEST_URI} ^/phpmyadmin
RewriteRule (.*) https://YOUR_PHPMYADMIN_DOMAIN_HERE/phpmyadmin$1 [R,L]
</Directory>
You need to manually set up the certificate for the default virtualhost (/etc/httpd/conf/extra/httpd-ssl.conf) too.
@uberguru,
You might want need to add something like this:
Code:<Directory "/var/www/html/phpMyAdmin"> RewriteEngine on RewriteBase / RewriteCond %{SERVER_NAME} !YOUR_PHPMYADMIN_DOMAIN_HERE RewriteCond %{REQUEST_URI} ^/phpmyadmin RewriteRule (.*) https://YOUR_PHPMYADMIN_DOMAIN_HERE/phpmyadmin$1 [R,L] </Directory>
into your Apache configs.
Of course, as Peter already mentioned, SSL cert should be installed on the vhost.