<div dir="ltr">Thank you very much Mr. Pasotti and Mr. Boisteault for the reply.<div><br></div><div>Following Mr. Boisteault recommendation, I am already setting QGIS_PROJECT_FILE, but this variable points only to .qgs file (default). Instead of pointing to a file, I tried setting a directory to QGIS_PROJECT_FILE, as: /home/qgis/projects/ or /home/qgis/projects/* or /home/qgis/projects/*.*, but no success. In this case, I think we will need to set QGIS_PROJECT_DIRECTORY instead of a file. </div><div><br></div><div>Now, according to MR Pasotti, I am already struggling while working on mod_rewrite. Find below my attempt without success:</div><div><br></div><div>RewriteEngine on<br>RewriteCond %{REQUEST_URI}  ^cgi-bin/qgis_mapserv.fcgi$<br>RewriteCond %{QUERY_STRING} ^map=map.qgs$<br>RewriteRule ^cgi-bin/qgis_mapserv.fcgi\?$ /cgi-bin/qgis_mapserv.fcgi?map=/home/qgis/project/%1 [NC,QSA,R,L]<br></div><div><br></div><div>I appreciated your time</div><div><br></div><div>Kind regards</div><div><br></div><div>Julierme</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 8, 2021 at 4:14 AM Alessandro Pasotti <<a href="mailto:apasotti@gmail.com">apasotti@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, Apr 8, 2021 at 9:10 AM Nicolas Boisteault <<a href="mailto:nboisteault@3liz.com" target="_blank">nboisteault@3liz.com</a>> wrote:<br>
><br>
> Hi,<br>
><br>
> I think you should use QGIS_PROJECT_FILE environment variable for this purpose.<br>
><br>
<br>
<br>
... or mod_rewrite as an alternative for Apache.<br>
<br>
Nginx has a similar functionality.<br>
<br>
-- <br>
Alessandro Pasotti<br>
QCooperative:  <a href="http://www.qcooperative.net" rel="noreferrer" target="_blank">www.qcooperative.net</a><br>
ItOpen:   <a href="http://www.itopen.it" rel="noreferrer" target="_blank">www.itopen.it</a><br>
_______________________________________________<br>
Qgis-user mailing list<br>
<a href="mailto:Qgis-user@lists.osgeo.org" target="_blank">Qgis-user@lists.osgeo.org</a><br>
List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-user" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-user</a><br>
</blockquote></div>