Shorter urls are easy with Apache using Alias (This is the same way recommended for Mapserver too) and symlinks.

symlink your qgs documents into /maps

then add and apache alias

Alias /maps /cgi-bin/qgis_mapserv.fcgi

Now urls would be

http://server.com/maps?map=/maps/test.qgs etc...

Anyone know if you can alias the part after map= ?

Enjoy,
Alex

On 06/19/2013 10:09 PM, Paolo Cavallini wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

- --
Paolo Cavallini - Faunalia
www.faunalia.eu
Full contact details at www.faunalia.eu/pc
Nuovi corsi QGIS e PostGIS: http://www.faunalia.it/calendario
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlHCjoAACgkQ/NedwLUzIr5ouACdHtVffQ/PVwviPiYYML90pikZ
dKwAn3/wVZb5ViiE2Hr+8pInK6Wc082I
=JEzE
-----END PGP SIGNATURE-----
_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer


_______________________________________________
Qgis-developer mailing list
Qgis-developer@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to