I am trying to use MapServer to display a raster image (png). That's it for now at least. However, I am having no luck. When I visit my map by using a link like:
I get the following error:
msLoadMap(): Regular expression error. MS_DEFAULT_MAPFILE_PATTERN validation failed. msEvalRegex(): Regular expression error. String failed expression test.
When I use shp2img:
shp2img -m file.map -o myimage.png -all_debug 5
I get no errors, but the image that's produced is completely gray except for the upper right quadrant which is white. This is nothing like my raster image.
MAP SHAPEPATH "/home/name/public_html/dir" IMAGETYPE PNG EXTENT -180 -90 180 90 SIZE 800 600 IMAGECOLOR 155 155 155 UNITS DD STATUS ON DEBUG ON LAYER NAME "base" DATA "/home/name/public_html/dir/image.png" STATUS ON TYPE RASTER END END
What am I doing wrong?