[Qgis-developer] URL Rewriting and qgis-web-client

Emilio Loi loi at faunalia.it
Tue Feb 26 07:33:01 PST 2013


Hi everybody, I hope you can help me.
I'm trying to enable URL Rewriting in Qgis-web-client as described at point
5 of the configuration guide (https://github.com/qgis/qgis-web-client)
I'm using this rule:

RewriteRule wms/([^/]+)$
cgi-bin/qgis_mapserv.fcgi?map=/var/www/qgis-web-client/projects/$1.qgs

It works well: when I browse http://THE_HOST/wms/example on firefox the
server returns the cgi script result whit parameter
map=/var/www/.../example.qgs
Then I've set

var serverAndCGI = "http://THE_HOST/wms/"

in GlobalOptions.js instead of the full url.

The problem shows up when Qgis-web-client trys to use the cgi script:
instead of call /wms/example/?params it calls /wms/NOTHING/?params. (as you
can see)

[16:09:20.950] GET
http://THE_HOST/wms//?&_dc=1361891360854&SERVICE=WMS&VERSION=1.3&REQUEST=GetProjectSettings[HTTP/1.1
404 Not Found 126ms]

What am I forgetting to configure?
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130226/927b5808/attachment.html>


More information about the Qgis-developer mailing list