Closed NyakudyaA closed 5 years ago
Your MAP path is incorrect: path must be relative to the QGSRV_CACHE_ROOTDIR i.e:
?MAP=project.qgs&...
not
?MAP=/project/project.qgs&...
Absolute project paths are forbidden because this is a security hole.
Thanks will try it out
Works
Problem
I have been trying to use this image to serve out my qgis projects but have largely been unsuccessful. Maybe I am doing a schoolboy error.
I ran
where the contets of
projects-qgis3
directory looks likeAnd when I run the
http://localhost:8080/ows/?SERVICE=WMS&VERSION=1.1.0&REQUEST=GetCapabilities
I get the following error.If I add the map parameter to the request I get the following error.
But If I exec into the container I can see that the
project.qgs
does exist in/projects/
But If I use my qgis project with another image it works without any problem ie
Which results in the following request
So I am quite sure the qgis project has no errors but I am puzzled to what I am doing wrong here