[Qgis-user] QGIS Mapserver - Project administration and updates, documentation

Andreas Neumann a.neumann at carto.net
Fri Jan 5 01:17:29 PST 2018


Hi, 

I agree with Alessandro. Only keep one instance of the binary around.
Otherwise you start a mess. 

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. 

To support different projects in different directories, use a rewrite
rule - which also hides the full path (good practice). 

Andreas 

On 2018-01-05 09:59, Albin Blaschka wrote:

> Hello Alessandro, hello Richard!
> 
> Yes, I will in the next days - and thanks Richard for the step by step guide!
> Albin
> 
> Am 2018-01-05 um 09:43 schrieb Richard Duivenvoorde: On 05-01-18 09:35, Alessandro Pasotti wrote: On Fri, Jan 5, 2018 at 9:27 AM, Albin Blaschka
> <albin.blaschka at standortsanalyse.net
> <mailto:albin.blaschka at standortsanalyse.net>> wrote:
> 
> Hello all,
> 
> Following an update on my Linux-Server (Ubuntu), where I have an
> instance of qgis mapserver running, I stumbled upon a small gotcha -
> it stopped working.
> 
> The reason was simple: The binary of qgis_mapserv.fcgi got updated,
> but when I set up qgis mapserver, I followed the suggestion as
> described under
> 
> https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation
> <https://docs.qgis.org/2.18/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation>
> 
> under the heading "Server the project" to put a project into a
> separate directory with the .qgs file and a *Copy* of qgis_mapserv.fcgi
> 
> I think that spreading copies of the CGI binary on your directory tree
> is bad practice and calls for troubles, a symlink works surely better
> but there are many other ways to serve a particular project depending on
> the URL (any rewrite module for your favourite server would be sufficient ).
> 
> Would you mind making a pull request and fix the documentation? Yes, please do:
> 
> - create a github account if you net have one
> - go to latest version of the page:
> https://docs.qgis.org/testing/en/docs/user_manual/working_with_ogc/server/getting_started.html#installation
> - click the 'fix me' link in the footer which brings you to
> -
> https://github.com/qgis/QGIS-Documentation/edit/master/source/docs/user_manual/working_with_ogc/server/getting_started.rst
> - you will be asked to create a fork, do that, update the docs (just
> using Github editor...), and do a pull request
> - if all fails, then please create an issue with a pointer to this
> discussion: https://github.com/qgis/QGIS-Documentation/issues
> 
> For all other people: PLEASE try to help QGIS to get uptodate docs by at
> least try to write/update some docs every now and then. I think the plan
> above is doable for every tech savvy QGIS user...
> And again: if all fails: write an issue, and preferably attach a new
> text to it.
> 
> Regards,
> 
> Richard Duivenvoorde
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180105/2d97266a/attachment.html>


More information about the Qgis-user mailing list