phpmyadmin over SSL

codeman05

Verified User
Joined
Jun 21, 2008
Messages
43
Is their a How-To/Guide on how to secure phpmyadmin?

I thought I saw something on the subject a few months back but I am not finding anything in my searches.

Thanks guys!
 
Figured out a solution.
Just put an .htaccess rule in /var/www/html seems to do the trick.
 
Yes if you google search "force ssl" you get many examples.
 
Figured out a solution.
Just put an .htaccess rule in /var/www/html seems to do the trick.
Forgive my ignorance, codeman05, but I'm a systems administrator, not an html wizard ...

Can I force https this way for only certain files? Or must it be for everything in the subdirectory and below?

Thanks.

Jeff
 
You can choose particular files, here is an exemple:

Code:
RewriteEngine On
RewriteCond %{SERVER_PORT} !443
RewriteCond %{REQUEST_URI} secure.php(.*)$
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R=301,L]
 
Back
Top