Secure server redirect using proxy not working

Discussion in 'Installation/Configuration' started by brainsys, Apr 22, 2023.

  1. brainsys

    brainsys Member

    I have a working reverse proxy using Apache2 & ISPConfig 3.2.9p1 on Debian 11. The settings are:
    Redirect Type: proxy
    Redirect Path: http://localhost:3000/
    SEO Redirect: No redirect
    Rewrite HTTP to HTTPS: ticked

    However the HTTPS redirect is not executed. I've tried removing the port 80 section in the vhost file but http still sneaks through. Is the vhost file even accessed? Ideally I would like a working redirect - but just blocking port 80 access would be good. No point in messing about with a .htaccess file as the web directory is bypassed.
     
  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    What if Redirect Path: is httpS:// ?
     
  3. till

    till Super Moderator Staff Member ISPConfig Developer

    The proxy is probably located before the https redirect in the vhost file. What you can do is remove the proxy on redirect tab and then add some proxy rules in the apache directives field on options tab instead.
     
  4. brainsys

    brainsys Member

    Thanks Till. That did the trick!
     

Share This Page