Permanent SSL redirect from HTTP to HTTPS

  • I've got the following improvement:


    Code
    1. grep -i rewrite /etc/apache2/sites-available/00_master.conf
    2. RewriteEngine on
    3. RewriteCond %{HTTPS} off
    4. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R]


    This rewrites every connection to the control panel from HTTP to HTTPS. Maybe you can make a "if/than" case in the installer where you ask for permanent redirect for the control panel? Or maybe an option in the panel to activate it? It's only a small improvement of security...


    Greetings

  • Nice, will do it;-) btw: we found some bugs in German translation. Will correct it when I have time.


    What do you think is better? To activate it in the admin panel or while installation? I'd like try to implement it on my own;-)

    Edited once, last by fluser ().

  • I think it would be valuable for this feature to be implemented like this:


    Ability to redirect from HTTP to HTTPS (force HTTPS) for:
    1. admin interface
    2. specific domain name
    3. specific subdirectory

  • Hello ;


    Such behavior should be provided as plugin.


    Thanks you for using i-MSCP.

    badge.php?id=1239063037&bid=2518&key=1747635596&format=png&z=547451206