[mapserver-users] relative path for .map file inside a WMS url

2011-04-20 Thread Clément MONIER
Hi, I have a CGI MapServer 5.6.0beta5 instance running on Windows. But I'm not (and won't never be) able to know for sure the folder's path where its files are deployed. I know that MapServer is running fine though, delivering maps as needed. But I'm not able to make some WMS web request

Re: [mapserver-users] relative path for .map file inside a WMS url

2011-04-20 Thread thomas bonfort
I don't think it is possible o have this yet. You could file an enhancement request, as this would be a nice feature to have. regards, thomas On Wed, Apr 20, 2011 at 16:43, Clément MONIER clement.mon...@v-trafic.com wrote: Hi, I have a CGI MapServer 5.6.0beta5 instance running on Windows.

Re: [mapserver-users] relative path for .map file inside a WMS url

2011-04-20 Thread thomas bonfort
Actually, you can also do this with an apache rewrite rule, I've just tested it and it seems to work quite well ! RewriteEngine On RewriteRule ^/wms/(.*) /cgi-bin/mapserv?map=/datadir/$1.map [PT,QSA] it will translate requests that are like /wms/carto to /cgi-bin/mapserv?map=/datadir/carto.map ,