Redirects and Proxy Force SSL

  • Hello,


    i use very often the Proxy function for a Domain, which is very easy and perfect. I might be a little bit better, if there can be an option to force proxy over https.


    Example:
    <original.de> connected to IMSCP and set as Proxy to <http://dev.website.de> (where the content is located such as Wordpress)


    I can use http://original.de and https://original.de, both worked perfect. It will be a dream if there where an option to redirect http to https


    On the <dev.website.de> i have no chance to force to https, because always http.


    Thanks a lot for reading


    ShortSnow

  • not sure, if i understand your question correctly, but if i do, look...
    protocol independent proxifying is Layer4 (packet layer), so you are pure tcp, no layer7 (protocol layer) redirect.
    if you want to achieve such thing, you can use a reverse proxy like haproxy or nginx, with or without ssl termination.

  • Hello,


    kess : Yes you are right, but HSTS does not forward to SSL i think


    flames : Sorry i try to explain it better:


    If i enable a redirect for Domain with proxy, then two virtual hosts will be generatet. One for http and one for ssl. With a new Option for Redirekt (Example "Force SSL") The generated virtual host for Port 80 should have:


    Code
    1. RewriteEngine On
    2. RewriteRule ^(.*)$ https://%{HTTP_HOST}$1 [R=301,L]

    instead of the Proxy Configuration.



    Thanks a lot


    ShortSnow