One question I'm not sure about is if wrapping the fcgi through a shell
script decreases performance (by bypassing fcgi advantages).
May be @Marco_Hugentobler (who knows more about fcgi and performance)
can say word on this.

Invoking the server with script restarts the qgis_mapserv.fcgi executable each time. Therefore, no benefit from all the server cache. I'm expecting the performance to decrease significantly.
Performance-wise, it is better to go with Apache rewriting.

Regards,
Marco

On 20.06.2013 09:35, Marco Lechner - FOSSGIS e.V. wrote:
Hi Paolo,

you can even set a bunch of environment variables e.g.

export SHAPE_ENCODING=""
export LANG=en_US.UTF-8
export LD_LIBRARY_PATH=/home/user/apps/qgis-master/lib
exec /home/user/apps/qgis-master/bin/qgis_mapserv.fcgi

for testing a freshly compiled master

One question I'm not sure about is if wrapping the fcgi through a shell
script decreases performance (by bypassing fcgi advantages).
May be @Marco_Hugentobler (who knows more about fcgi and performance)
can say word on this.

Marco

Am 20.06.2013 08:35, schrieb Paolo Cavallini:
Il 20/06/2013 07:56, Marco Lechner - FOSSGIS e.V. ha scritto:
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>
Interesting hack, thanks.
All the best.



--
Dr. Marco Hugentobler
Sourcepole -  Linux & Open Source Solutions
Weberstrasse 5, CH-8004 Zürich, Switzerland
[email protected] http://www.sourcepole.ch
Technical Advisor QGIS Project Steering Committee

_______________________________________________
Qgis-developer mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to