1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.4 Xf behind reverse proxy + SSL terminator

Discussion in 'Troubleshooting and Problems' started by Weppa333, Dec 12, 2015.

  1. Weppa333

    Weppa333 Active Member

    This is on XF 1.4.10 currently, but same problem probably applies in current version

    I'm running XF behind a reverse proxy that aloso does ssl termination

    Meaning the browser talks HTTPS to the proxy, which then queries the XF server in HTTP.

    Problem with this is the BASE HREF tag in the layout, which is always set to HTTP ( XF sees an http connection coming from the proxy). It of course breaks the site.
    I could "hardwire" base href in the layout, but I wonder if there is an elegant solution to that

    Changing the "forum url" in the acp options does not work ; this "base href" thing seems to be built on the fly by I don't know what

    As is, XF is simply not able to run behind a reverse proxy that does ssl termination

    When are you gonna get rid of these horrible base href tags that break XF on many search engines spiders.
  2. Mike

    Mike XenForo Developer Staff Member

    If you are guaranteed to access via SSL, put:
    $_SERVER['HTTPS'] = 'on';
    In config.php.

    (Even without the base tag, the URLs may still be wrong because XF can't necessarily detect the proper URL.)
  3. Weppa333

    Weppa333 Active Member

    Thanks @Mike ! I'll try right away and let you know.
  4. Weppa333

    Weppa333 Active Member

    Works like a charm !

    That's why I use XenForo : I'm don't always agree with your choices ( base href ? o_O ) but support - even for the weirdest setups - is really great and direct contact with the DEVs. Thanks so much.

Share This Page