Am 2018-01-05 um 10:17 schrieb Andreas Neumann:

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



Hello!

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. 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! ;-) )
Thanks, best regards,
Albin

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.blasc...@standortsanalyse.net <mailto:albin.blasc...@standortsanalyse.net> <mailto:albin.blasc...@standortsanalyse.net <mailto:albin.blasc...@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



--
| Dr.rer.nat. Albin Blaschka
| Etrichstrasse 26, A-5020 Salzburg
| * www.standortsanalyse.net *
| * www.researchgate.net/profile/Albin_Blaschka *
| - It's hard to live in the mountains, hard but not hopeless!

_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to