<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi all,<br>
    <br>
    To fix this issue, you have to add HOME environmental variable to a
    directory in which the directory .qgis2 is writable for the user
    used by QGIS Server, with Apache2, it's www-data.<br>
    <br>
    For exemple, do these commands:<br>
    ```<br>
    mkdir /srv/qgis/.qgis2<br>
    chown www-data:www-data /srv/qgis/.qgis2<br>
    chmod 774 /srv/qgis/.qgis2<br>
    ```<br>
    <br>
    And add this in your apache virtual host:<br>
    ```<br>
    FcgidInitialEnv HOME "/srv/qgis"<br>
    ```<br>
    <br>
    The documentation probably needs to be updated.<br>
    <br>
    Regards,<br>
    René-Luc<br>
    <br>
    <div class="moz-cite-prefix">Le 14/05/2018 à 17:49, Alessandro
      Pasotti a écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:CAL5Q670x0MZD5sTXHvVDtN2ZMUtaVZj16u+s96ZgDBOd9BPiQw@mail.gmail.com">
      <div dir="ltr">
        <div>And this:</div>
        <div><br>
        </div>
        <div><a href="https://issues.qgis.org/issues/17951"
            moz-do-not-send="true">https://issues.qgis.org/issues/17951</a></div>
        <div><br>
        </div>
        <div>and this too:</div>
        <div><br>
        </div>
        <div><a href="https://issues.qgis.org/issues/16462"
            moz-do-not-send="true">https://issues.qgis.org/issues/16462</a></div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Mon, May 14, 2018 at 4:58 PM, Régis
          Haubourg <span dir="ltr"><<a
              href="mailto:regis.haubourg@gmail.com" target="_blank"
              moz-do-not-send="true">regis.haubourg@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>Hi Anne, <br>
              </div>
              <div>did you test QGIS 3.0 also? <br>
              </div>
              <div>Could you create an issue in <a
                  href="http://issue.qgis.org" target="_blank"
                  moz-do-not-send="true">issue.qgis.org</a> tracker? <br>
              </div>
              <div><br>
              </div>
              <div>I found that one, that seemed related <a
                  href="https://issues.qgis.org/issues/18634"
                  target="_blank" moz-do-not-send="true">https://issues.qgis.org/<wbr>issues/18634</a>
                <br>
              </div>
              <div><br>
              </div>
              <div>Regards, <br>
              </div>
              <div>Régis<br>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">
                <div>
                  <div class="h5">2018-05-14 16:25 GMT+02:00 Anne
                    Blankert <span dir="ltr"><<a
                        href="mailto:anne.blankert@geodan.nl"
                        target="_blank" moz-do-not-send="true">anne.blankert@geodan.nl</a>></span>:<br>
                  </div>
                </div>
                <blockquote class="gmail_quote" style="margin:0 0 0
                  .8ex;border-left:1px #ccc solid;padding-left:1ex">
                  <div>
                    <div class="h5">
                      <div dir="ltr"><span style="font-size:12.8px">Hello
                          List,</span>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">This question was
                          already asked in Jan 2017, but no solution was
                          posted.</div>
                        <div style="font-size:12.8px"><a
href="http://osgeo-org.1560.x6.nabble.com/QGIS-Server-SSL-handshake-failed-for-cascading-WMS-td5305094.html"
                            target="_blank" moz-do-not-send="true">http://osgeo-org.1560.x6.nabbl<wbr>e.com/QGIS-Server-SSL-handshak<wbr>e-failed-for-cascading-WMS-td5<wbr>305094.html</a><br>
                        </div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">The problem: if
                          QGIS uses an HTTPS (SSL) WMS service, the WMS
                          works nicely in QGIS desktop. However, if you
                          use the same .qgs project file on QGIS Server,
                          all requests to the HTTPS (SSL) WMS server
                          result in an  SSL handshake error.</div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">This (still)
                          happens on:</div>
                        <div style="font-size:12.8px">Ubuntu 16.04</div>
                        <div style="font-size:12.8px">QGIS server 2.18</div>
                        <div style="font-size:12.8px">An example WMS
                          https server showing the problem is: <a
                            href="https://geodata.nationaalgeoregister.nl/bag/ows"
                            target="_blank" moz-do-not-send="true">https://geodata.nationaalg<wbr>eoregister.nl/bag/ows</a><br>
                        </div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">A workaround could
                          be to use the HTTP version of the WMS instead
                          of the HTTPS version. However, the
                          capabilities of many HTTP services advertise
                          the HTTPS version for the GETMAP,
                          GETFEATUREINFO and GETLEGENDGRAPHIC
                          endpoints. </div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">The SSL problem
                          also arises when trying to use WFS services
                          over HTTPS from QGIS Server.</div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px"><span
                            style="font-size:12.8px">Is this a known
                            problem? Is there a workaround? Should I
                            file a bug report?</span><br>
                        </div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">Thanks,</div>
                        <div style="font-size:12.8px"><br>
                        </div>
                        <div style="font-size:12.8px">Anne</div>
                      </div>
                      <br>
                    </div>
                  </div>
                  ______________________________<wbr>_________________<br>
                  QGIS-Developer mailing list<br>
                  <a href="mailto:QGIS-Developer@lists.osgeo.org"
                    target="_blank" moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
                  List info: <a
                    href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
                  Unsubscribe: <a
                    href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
                    rel="noreferrer" target="_blank"
                    moz-do-not-send="true">https://lists.osgeo.org/mailma<wbr>n/listinfo/qgis-developer</a><br>
                </blockquote>
              </div>
              <br>
            </div>
            <br>
            ______________________________<wbr>_________________<br>
            QGIS-Developer mailing list<br>
            <a href="mailto:QGIS-Developer@lists.osgeo.org"
              moz-do-not-send="true">QGIS-Developer@lists.osgeo.org</a><br>
            List info: <a
              href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
            Unsubscribe: <a
              href="https://lists.osgeo.org/mailman/listinfo/qgis-developer"
              rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
          </blockquote>
        </div>
        <br>
        <br clear="all">
        <br>
        -- <br>
        <div class="gmail_signature" data-smartmail="gmail_signature">Alessandro
          Pasotti<br>
          w3:   <a href="http://www.itopen.it" target="_blank"
            moz-do-not-send="true">www.itopen.it</a></div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></pre>
    </blockquote>
    <br>
  </body>
</html>