ssl url valve

Jahia links are not in https

Question

Jahia is accessed with the HTTPS scheme but the generated links in the page are in HTTP

Answer

  1. Add the RemoteIpVale to the Tomcat configuration file TOMCAT_HOME/conf/server.xml and restart:
    <Valve
            className="org.apache.catalina.valves.RemoteIpValve"
            remoteIpHeader="X-Forwarded-for"
            proxiesHeader="X-Forwarded-by"
            protocolHeader="X-Forwarded-proto"
            protocolHeaderHttpsValue="https"
    />
  2. In the front-endn check that the header X-Forwarded-Proto is set to https
     
    1. For Apache 2, add the following lines into your VirtualHost config:
      RemoteIPHeader X-Forwarded-For
      RequestHeader set X-Forwarded-Proto "https"

      Please see a fully detailed example at Apache2 front-ends

    2. For F5, follow the procedure that explained how to insert the X-Forwarded-Proto:https HTTP header on this page https://support.f5.com/csp/article/K43444200