I'm working on porting a development environment to our production server. 
Using:

Mapserver 8.2.2 binaries from GISInternals
IIS 10
Windows Server 2016

The permissions are the same on both servers, I have Mapserver set up as a 
FastCGI module and have the MAPSERVER_CONFIG_FILE Env variable set. I've 
attached the Config file here, but it's pretty simple, and I can confirm it's 
being read.

The error I'm getting is: msLoadMap(): Regular expression error. Filename 
validation failed

I've googled this, and only found one other user who seemed to have a similar 
problem. They never posted a clear solution, and their workaround was to point 
to the endpoint with no mapserv.exe in the path (just the endpoint), but had no 
idea why this worked. It did not work for me, however. What is confusing is 
that I have no validation for the files. I have a MAPS key set, which works on 
Development, and have set the MS_MAP_PATTERN to *.* to try and eliminate any 
validation mistakes. The map files are ones that have been in use for some 
time, with no issues. Hitting just the raw endpoint delivers the expected 
'QUERY_STRING is set, but empty. 'but still also includes the Filename 
validation error.

Am I missing a PATH environment variable that is required?
Anyone have any ideas for me to test out?

Timothy Pascoe

Please note the return to our departmental E-mail address below. My Canada.ca 
address will also continue to work for the time being/Veuillez noter le retour 
à notre adresse électronique départementale ci-dessous. Mon adresse Canada.ca 
continuera également à fonctionner pour le moment.

Environmental Scientist, Water Quality Monitoring & Surveillance
Environment & Climate Change Canada (ECCC)
tim.pas...@ec.gc.ca<mailto:tim.pas...@ec.gc.ca> T: 905-336-6239 / C: 
289-253-7857

Scientifique de l'environement, Surveillance de la qualité de l'eau
Environnement et Changement climatique Canada (ECCC)
tim.pas...@ec.gc.ca<mailto:tim.pas...@ec.gc.ca> T: 905-336-6239 / C: 
289-253-7857

[Environment Canada]

Attachment: mapserver.conf
Description: mapserver.conf

_______________________________________________
MapServer-users mailing list
MapServer-users@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to