Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

So we've installed QGIS Server and things look to be working well (thanks Underdark for the great tutorial).

Next up we want to get the QGIS Web Client working. It appears we're missing a step or have misunderstood the instructions at https://github.com/qgis/qgis-web-client . How do we get started? Do we copy the above files to the server and modify the links accordingly? It looks like the files in the 'site' folder establish a sample website. Is that what's happening? And that work together with the apache config to rewrite URLs in some manner?

I think i can figure this out with just a bit of a nudge in the right direction.

the WMS get Capabilities link http://gis.idn12.com/qgis/qgis_mapserv.fcgi.exe?SERVICE=WMS&VERSION=1.3.0&map=c:/myprojects/shapefile.qgs&REQUEST=GetCapabilities

thanks! C

share|improve this question
    
This is work: localhost/qgis/… But not the Webclient. I tried also this, but no sucess: lists.osgeo.org/pipermail/qgis-developer/2012-July/020851.html –  Hanspeter Dec 17 '13 at 10:39

1 Answer 1

I've had the same problem and asked the question on stackoverflow. As I can see on your site, you hadn't change the pathes in your project.

So, you must copy /apache-conf/qgis-web-client.conf.tmpl to .../apache-conf/qgis-web-client.conf (or rename...but I don't want to risk, so I've just copied it). Then you must replace all <path-to-qgis-server-projects> in .../apache-conf/qgis-web-client.conf.tmpl with your real projects path (for example, .../projects). Then you must copy one of .../site/js/GlobalOptions.js.templ-4326 or .../site/js/GlobalOptions.js.templ-900913 (for SRID=4326 and SRID=900913 projections respectively) to .../site/js/GlobalOptions.js.

And replace all /home/web/qgis-web-client entries with your real project path in files: .../site/index.html, .../site/index.xml.tmpl (if you will use it...or just in case), .../site/js/GISProjectListing.js (this file containts pathes to your HelloWorld and NaturalEarth projects) and in .../apache-conf/qgis-web-client.conf too.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.