[Qgis-user] Hind the QGS path in the MAP Variable

Nicolas Boisteault nboisteault at 3liz.com
Thu Apr 8 00:10:28 PDT 2021


Hi,

I think you should use QGIS_PROJECT_FILE environment variable for this 
purpose.

Regards

Le 08/04/2021 à 04:05, 1520 gis a écrit :
> Hi Developers,
>
> I have hit the head in a wall trying to hind the .qgs file in the MAP 
> variable. I want to change FROM 
> localhost/cgi-bin/qgis_mapserv.fcgi?map=/home/qgis/project/map.qgs
> TO localhost/cgi-bin/qgis_mapserv.fcgi?map=map.qgs
>
> Find below my unsuccessful attempt:
>
> RewriteEngine on
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
> RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
> RewriteRule ^cgi-bin/qgis_mapserv.fcgi\?map\=([a-zA-Z0-9_-]+)\.qgs$ 
> cgi-bin/qgis_mapserv.fcgi?map=/home/qgis/project/$1 [NC,QSA,L]
>
> Any help will very much appreciated
>
> I appreciate your time in advance.
>
> Kind regards
>
> Julierme
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210408/83c8aae8/attachment.html>


More information about the Qgis-user mailing list