Hi Allan,

I have enhanced the documentation for this, see the section titled "Securing your MS4W Installation" at https://ms4w.com/README_INSTALL.html#securing-your-ms4w-installation and go through the "Security Steps to Enable" there.

In summary, be sure to edit your local /ms4w/ms4w.conf, and make sure the correct drive is specified for the MS_MAP_PATTERN

Then, you can test your mapfile locally, to verify that your MAP= path validates with your local path, by editing this url & its path : http://127.0.0.1/cgi-bin/mapserv.exe?map=E:/ms4w/apps/local_demo/local_test.map&MODE=browse&TEMPLATE=openlayers&LAYERS=all

(the above contains underscores, which worked for me out-of-the-box, but I did have to change the drive path to E: as part of the MS_MAP_PATTERN in ms4w.conf )

(the new setup.exe installer handles the MS_MAP_PATTERN for you, for those that use it)

Thanks,

-jeff



--
Jeff McKenna
GatewayGeo: Developers of MS4W, & offering MapServer Consulting/Dev
co-founder of FOSS4G
http://gatewaygeo.com/




On 2024-10-02 12:20 p.m., Allan via MS4W-Users wrote:
Hi all,

     I'm in the process of moving to the 5.0 release of MS4W.  I have a clean install, and I added my existing (working) maps.  When I try to test my maps in QGIS I get:

      msCGILoadMap(): Web application error. CGI variable "map"; fails to validate.

I saw the issue tracker entry about this, and the pattern mentioned there appears to match what's in the MS_BAD_MAP_PATTERN SetEnv in the httpd.conf file.

Any idea what's going on?  My main map file has a couple underscore characters in it, but worked perfectly with the last version of MS4w...


Allan Gillis



_______________________________________________
MS4W-Users mailing list
[email protected]
https://lists.ms4w.com/mailman/listinfo/ms4w-users

Reply via email to