<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Am 2018-01-05 um 10:17 schrieb Andreas
      Neumann:<br>
    </div>
    <blockquote type="cite"
      cite="mid:11a96858eac224792857e1417a86a500@carto.net">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <p>Hi,</p>
      <p>I agree with Alessandro. Only keep one instance of the binary
        around. Otherwise you start a mess.</p>
      <p>Also - you should not have the project files in the same
        directory than the qgis_mapserv.fcgi. That is bad practice. QGIS
        project files often contain sensitive data (like database logins
        or logins to web services) and should not be accessible in any
        URL reachable to the public - neither in cgi-bin nor in other
        html/www paths.</p>
      <p>To support different projects in different directories, use a
        rewrite rule - which also hides the full path (good practice).</p>
      <p>Andreas</p>
    </blockquote>
    <br>
    <br>
    Hello!<br>
    <br>
    Good point, yes - but as mentioned in my first mail, this was part
    of the documentation until recently... I set up my instance quite
    some time ago and did not think about it, as it was until recently
    just a proof-of-concept/test work, not really meant to be in
    production. And now I stumbled over it, as this changes now.<br>
    I will propose changes for the documentation in the next days, also
    considering all input now coming in in this thread (Hint to all
    readers: Provide input! ;-) )<br>
    Thanks, best regards,<br>
    Albin<br>
    <br>
    <blockquote type="cite"
      cite="mid:11a96858eac224792857e1417a86a500@carto.net">
      <p>On 2018-01-05 09:59, Albin Blaschka wrote:</p>
      <blockquote type="cite" style="padding: 0 0.4em; border-left:
        #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
        <div class="pre" style="margin: 0; padding: 0; font-family:
          monospace"><span style="white-space: nowrap;">Hello Alessandro, hello Richard!</span><br>
          <br>
          Yes, I will in the next days - and thanks Richard for the step
          by step guide!<br>
          Albin<br>
          <br>
          <span style="white-space: nowrap;">Am 2018-01-05 um 09:43 schrieb Richard Duivenvoorde:</span>
          <blockquote type="cite" style="padding: 0 0.4em; border-left:
            #1010ff 2px solid; margin: 0"><span style="white-space:
              nowrap;">On 05-01-18 09:35, Alessandro Pasotti wrote:</span>
            <blockquote type="cite" style="padding: 0 0.4em;
              border-left: #1010ff 2px solid; margin: 0"><span
                style="white-space: nowrap;">On Fri, Jan 5, 2018 at 9:27 AM, Albin Blaschka</span><br>
              <span style="white-space: nowrap;"><<a
                  href="mailto:albin.blaschka@standortsanalyse.net"
                  moz-do-not-send="true">albin.blaschka@standortsanalyse.net</a></span><br>
              <span style="white-space: nowrap;"><mailto:<a
                  href="mailto:albin.blaschka@standortsanalyse.net"
                  moz-do-not-send="true">albin.blaschka@standortsanalyse.net</a>>> wrote:</span><br>
              <br>
              <span style="white-space: nowrap;">     Hello all,</span><br>
              <br>
              <span style="white-space: nowrap;">     Following an update on my Linux-Server (Ubuntu), where I have an</span><br>
              <span style="white-space: nowrap;">     instance of qgis mapserver running, I stumbled upon a small gotcha -</span><br>
              <span style="white-space: nowrap;">     it stopped working.</span><br>
              <br>
              <span style="white-space: nowrap;">     The reason was simple: The binary of qgis_mapserv.fcgi got updated,</span><br>
              <span style="white-space: nowrap;">     but when I set up qgis mapserver, I followed the suggestion as</span><br>
              <span style="white-space: nowrap;">     described under</span><br>
              <br>
              <span style="white-space: nowrap;">     <a
href="https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation"
                  target="_blank" rel="noopener noreferrer"
                  moz-do-not-send="true">https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation</a></span><br>
              <span style="white-space: nowrap;">     <<a
href="https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation"
                  target="_blank" rel="noopener noreferrer"
                  moz-do-not-send="true">https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation</a>></span><br>
              <br>
              <span style="white-space: nowrap;">     under the heading "Server the project" to put a project into a</span><br>
              <span style="white-space: nowrap;">     separate directory with the .qgs file and a *Copy* of qgis_mapserv.fcgi</span><br>
              <br>
              <br>
              <br>
              <span style="white-space: nowrap;">I think that spreading copies of the CGI binary on your directory tree</span><br>
              <span style="white-space: nowrap;">is bad practice and calls for troubles, a symlink works surely better</span><br>
              <span style="white-space: nowrap;">but there are many other ways to serve a particular project depending on</span><br>
              <span style="white-space: nowrap;">the URL (any rewrite module for your favourite server would be sufficient ).</span><br>
              <br>
              <span style="white-space: nowrap;">Would you mind making a pull request and fix the documentation?</span></blockquote>
            <span style="white-space: nowrap;">Yes, please do:</span><br>
            <br>
            <span style="white-space: nowrap;">- create a github account if you net have one</span><br>
            <span style="white-space: nowrap;">- go to latest version of the page:</span><br>
            <span style="white-space: nowrap;"><a
href="https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation"
                target="_blank" rel="noopener noreferrer"
                moz-do-not-send="true">https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation</a></span><br>
            <span style="white-space: nowrap;">- click the 'fix me' link in the footer which brings you to</span><br>
            <span style="white-space: nowrap;">-</span><br>
            <span style="white-space: nowrap;"><a
href="https://github.com/qgis/QGIS-Documentation/edit/master/source/docs/user_manual/working_with_ogc/server/getting_started.rst"
                target="_blank" rel="noopener noreferrer"
                moz-do-not-send="true">https://github.com/qgis/QGIS-Documentation/edit/master/source/docs/user_manual/working_with_ogc/server/getting_started.rst</a></span><br>
            <span style="white-space: nowrap;">- you will be asked to create a fork, do that, update the docs (just</span><br>
            <span style="white-space: nowrap;">using Github editor...), and do a pull request</span><br>
            <span style="white-space: nowrap;">- if all fails, then please create an issue with a pointer to this</span><br>
            <span style="white-space: nowrap;">discussion: <a
                href="https://github.com/qgis/QGIS-Documentation/issues"
                target="_blank" rel="noopener noreferrer"
                moz-do-not-send="true">https://github.com/qgis/QGIS-Documentation/issues</a></span><br>
            <br>
            <span style="white-space: nowrap;">For all other people: PLEASE try to help QGIS to get uptodate docs by at</span><br>
            <span style="white-space: nowrap;">least try to write/update some docs every now and then. I think the plan</span><br>
            <span style="white-space: nowrap;">above is doable for every tech savvy QGIS user...</span><br>
            <span style="white-space: nowrap;">And again: if all fails: write an issue, and preferably attach a new</span><br>
            <span style="white-space: nowrap;">text to it.</span><br>
            <br>
            <span style="white-space: nowrap;">Regards,</span><br>
            <br>
            <span style="white-space: nowrap;">Richard Duivenvoorde</span></blockquote>
        </div>
      </blockquote>
      <p><br>
      </p>
    </blockquote>
    <p><br>
    </p>
    <pre class="moz-signature" cols="72">-- 
| Dr.rer.nat. Albin Blaschka
| Etrichstrasse 26, A-5020 Salzburg
| * <a class="moz-txt-link-abbreviated" href="http://www.standortsanalyse.net">www.standortsanalyse.net</a> *
| * <a class="moz-txt-link-abbreviated" href="http://www.researchgate.net/profile/Albin_Blaschka">www.researchgate.net/profile/Albin_Blaschka</a> *
| - It's hard to live in the mountains, hard but not hopeless!
</pre>
  </body>
</html>