[Qgis-developer] Relative paths in mapserver

Marco Lechner - FOSSGIS e.V. marco.lechner at fossgis.de
Wed Jun 19 22:56:24 PDT 2013


Hi Paolo,

if you want to shorten URLs you also can pass the request through a
shell script (or whatever script executable by apache and called instead
og qgis_mapserv.fcgi) and change the parameters. Something similar to
this file "foo.cgi":

<code>
#!/bin/bash
export QUERY_STRING=$QUERY_STRING'&map=/absolute/path/to/my/project.qgs'
exec /usr/lib/cgi-bin/qgis_mapserv.fcgi
</code>

Marco

Am 20.06.2013 07:09, schrieb Paolo Cavallini:
> Il 19/06/2013 22:35, Marco Hugentobler ha scritto:
>
> > Relative pathes _to_ the project file are currently not supported
> (though it is easy
> > to resolve the relative pathes). What is your use-case? Do you have
> several different
> > server instances on your machine?
>
> Thanks Marco for clarifying. So I can use only:
>
> qgis_mapserv.fcgi?map=/usr/lib/cgi-bin/test/test.qgs
>
> Right?
> Only one mapserv instance, I just liked shorter URLs.
> All the best.
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer

-- 
+++++++++++++++++++++++++++++++++
FOSSGIS 2013, Die Konferenz für Open Source GIS mit OpenData und
OpenStreetMap erstmals in der Schweiz!
12.-14. Juni, HSR, Rapperswil, http://www.fossgis.de/konferenz/2013/
+++++++++++++++++++++++++++++++++
FOSSGIS e.V.

die unabhängige Hilfe bei freier GIS-Software und freien Geodaten
http://www.fossgis.de
+++++++++++++++++++++++++++++++++


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20130620/fb17cf04/attachment.html>


More information about the Qgis-developer mailing list