https for DA

uberguru

Verified User
Joined
Apr 30, 2011
Messages
97
I setup DA to use https but when i go to phpmyadmin, it uses http instead of https.
Can someone please tell me why this is and how i can fix this?

Thanks.
 
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.
 
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.

I want to use generated SSL certificate by server, i don't need to buy any SSL certificate. I mean in Cpanel, the https is automatically setup and works for every link from Cpanel, but DA the https is not setup and even after i set it up, then it doesn't work for phpmyadmin.

My question is why is it not working for phpmyadmin? if i applied the domain to DA; shouldn't it work for all links for DA (port 2222)?
 
No because phpmyadmin and other apps are not only used inside of the control panel. Maybe its a feature request for directadmin to have the links be ssl if directadmin has ssl enabled. But that would be a skin edit more then anything.
 
Back
Top