• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 688
  • Last Modified:

Configure phpmyadmin under ssl

Hello,

I'm having a problem trying to configure phpmyadmin under ssl, I can see https://mydomain.com/phpmyadmin and also http://mydomain.com/phpadmin, but the problem is that I don't want to use 'http'.

In my virtualhost (/etc/apache/sites-enable/secure1.domain.com) I got
NameVirtualHost 66.180.162.21:443
<VirtualHost *:80>
      ServerName secure1.domain.com
      
      Alias /phpmyadmin /usr/share/phpmyadmin
</VirtualHost>........

And, in /etc/phpmyadmin/apache.conf  I got,
Alias /phpmyadmin /usr/share/phpmyadmin

If I remove or comment that line, it won't work in http or https,
Im using Debian.


How can I fix this and just use https?

Hope somebody can help me
0
verguillas
Asked:
verguillas
1 Solution
 
mchkorgCommented:
One quick solution could be to Redirect ^http://........ (everything starting with http-not-s) to "https://...same stuff...."

Check here: http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html
0
 
verguillasAuthor Commented:
Thanks
0

Featured Post

SMB Security Just Got a Layer Stronger

WatchGuard acquires Percipient Networks to extend protection to the DNS layer, further increasing the value of Total Security Suite.  Learn more about what this means for you and how you can improve your security with WatchGuard today!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now