qgis / qwc2-demo-app

QWC2 demo application
Other
240 stars 149 forks source link

Location of 'qgis_mapserv.fcgi' in qwc-docker #518

Closed shapley closed 5 months ago

shapley commented 5 months ago

Hi All,

This is not an issue but I don't know who else to ask.

I need to put the correct 'url' in 'themesConfig.json' which points to the 'qgis_server.fcgi' executable. I've only ever set this up as a 'Standalone Viewer' in the past using 'yarn' with Apache2. In the qwc-docker version qgis-server is installed in a container 'qwc-docker-qwc-qgis-server' as a plugin. Can you advise how the url would look. e.g. under standalone viewer it looks like this:-

"url": "http://qgisserver/cgi-bin/qgis_mapserv.fcgi?MAP=/home/qgis/projects/myqgisproject.qgs",

which could be tested thus:-

http://qgisserver/cgi-bin/qgis_mapserv.fcgi?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities

Many thanks Guys...

manisandro commented 5 months ago

That would be

http://hostname:port/ows/<projectname>?SERVICE=WMS&REQUEST=...

Look at the requests in the network inspector of a qwc-docker hosted viewer to see some examples.

shapley commented 5 months ago

Fantastic...