[mapserver-users] Troubles masking wmf service via mod_rewrite
Nico Alberti
n8 at langhirano.it
Tue Jan 31 07:22:50 PST 2012
Hi everybody and sorry if my question is both lame and mostly due to my
lack of knowledge in using mod_rewrite, but I am having trouble changing
the Resource URL of my wms service. I followed the instructions at
http://mapserver.org/ogc/wms_server.html#online-resource-wms so I wrote
this .htaccess file:
RewriteEngine on
RewriteRule gisservice?(.*)
/cgi-bin/mapserv?map=/var/www/osm-demo/mapserver-utils-svn/osm-google.map&$1
The problem is that when a client invokes:
http://127.0.0.1/gisservice?VERSION=1.1.1&SERVICE=WMS&REQUEST=GetCapabilities
i get the error "Traditional BROWSE mode requires a TEMPLATE..."
because, from what I see trying to debug mod_rewrite, all the arguments
(except the map one) are stripped away from the url.
Can anybody give me some hint? I can live without rewtiting the url, I
would love to understand what's going wrong.
Thank you in advance and sorry for my poor English.
More information about the MapServer-users
mailing list