[Qgis-developer] the right way to make qgis-web-client work on Windows?

Giovanni Manghi giovanni.manghi at faunalia.pt
Wed Jul 4 12:45:51 PDT 2012


Hi all,

I have the need to make the qgis-web-client work on Windows (sigh!) and
I somehow managed to do it, but it doesn't seem the right way to me.

No problems with qgis server, just installed with osgeo4w and then
edited https_qgis.conf as described in the wiki.

QGIS server is then accessible trough

localhost/qgis/qgis_mapserv.fcgi.exe

and it works just fine.


Then I try to make the web client work the same way I do on Linux, by
editing GlobalOptions.js and changing 

var serverAndCGI = "http://localhost/qgis/qgis_mapserv.fcgi.exe";

to make it point where qgis server is working

But on Windows doesn't work and in access.log I can see that apache
rewrites the URL in the wrong way

127.0.0.1 - - [03/Jul/2012:19:56:44 +0100]
"GET /qgis/qgis_mapserv.fcgi.exe-web-client/site/qgiswebclient.html?SERVICE=WMS&VERSION=1.3&REQUEST=GetCapabilities&_dc=1341341804745&service=WMS&request=GetCapabilities HTTP/1.1" 404 259

on the other hand if I set

var serverAndCGI = "http://localhost/cgi-bin/qgis_mapserv.fcgi";

as it is under Linux, then the rewrite looks ok, but it doesn't
obviously work on Windows

127.0.0.1 - - [03/Jul/2012:19:52:55 +0100]
"GET /cgi-bin/qgis_mapserv.fcgi?map=C:/OSGeo4W/apache/htdocs/qgis-web-client/projects/helloworld.qgs&SERVICE=WMS&VERSION=1.3&REQUEST=GetCapabilities&_dc=1341341575105&service=WMS&request=GetCapabilities HTTP/1.1" 404 223



I then found the following solution that works, but doesn't seem quite
right:

in httpd.conf changed

ScriptAlias /cgi-bin/ "C:\OSGeo4W/bin/"

to
	
ScriptAlias /cgi-bin/ "C:\OSGeo4W/apps/qgis/bin/"

and then removed the "exe" extension from "qgis_mapserv.fcgi.exe" inside
"C:\OSGeo4W/apps/qgis/bin/".


What is the right way to do that?

cheers

-- Giovanni --





More information about the Qgis-developer mailing list