Hi Andrea

It is also possible to call QGIS server without map parameter and to place the .qgs file into the same directory as the qgis_mapserv.fcgi executable.

In practice, a better solution is to use Apache URL rewriting (mod_rewrite) to hide the location of the .qgs file from the client. Like this, you can use nice URLs and if the locations of the .qgs files change, the server administrator adapts the config accordingly.

Regards,
Marco

On 15.01.2012 21:14, aperi2007 wrote:
Hi,

I'm study-ing the qgis-server.
I notice to call the qgis-server is need to pass also the file-map and it eventually path.
like this:

http://localhost/cgi/qgis_mapserv.fcgi?MAP=/home/~user/map-files/test.qgs

this is a bit complicated url.
Because if I should decide to change the path to the file-map
this mean the url will change for any user using this qgis-server.

I like to know if there is some other method to set qgis-server where find the file map.

Thx,

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


--
Dr. Marco Hugentobler
Sourcepole -  Linux&  Open Source Solutions
Churerstrasse 22, CH-8808 Pfäffikon SZ, 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