[mapserver-users] Troubles masking wmf service via mod_rewrite

thomas bonfort thomas.bonfort at gmail.com
Tue Jan 31 10:56:13 EST 2012


there seems to be something wrong in the docs, have a look at
http://trac.osgeo.org/mapserver/ticket/3310 for a working rewriterule.

--
thomas

On Tue, Jan 31, 2012 at 16:22, Nico Alberti <n8 at langhirano.it> wrote:
> 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.
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users


More information about the mapserver-users mailing list