<VirtualHost *:12322>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^12322$
    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/cert.pem
    ServerAdmin webmaster@localhost
    DocumentRoot /usr/share/phpmyadmin/
</VirtualHost>

<Directory /usr/share/phpmyadmin>
    Options Indexes FollowSymLinks
    DirectoryIndex index.php
    SSLRequireSSL
    <Files setup.php>
        Deny from all
    </Files>

    <IfModule mod_php5.c>
        AddType application/x-httpd-php .php
        php_flag magic_quotes_gpc Off
        php_flag track_vars On
        php_flag register_globals Off
        php_value include_path .
    </IfModule>
</Directory>

##

