Re: [mapserver-users] Running on Mac Apache with Hombrew Install of Mapserver 7.6.4

2021-11-18 Thread Rahkonen Jukka (MML)
Hi,

I have env setting at the top level in httpd.conf. On my Windows I have there 
also things like
SetEnv PROJ_LIB "/ms4w/proj/nad/"
SetEnv GDAL_DATA "/ms4w/gdaldata"

but you may have those set already as generic environmental variables on your 
Mac. And you do not need to have directory /opt/mapserver for your mapfiles, 
you can store them anywhere you want, but MS_MAP_PATTERN must validate the path 
that you are using.

-Jukka Rahkonen-

Lähettäjä: MapServer-users  Puolesta 
Kenneth Kniel via MapServer-users
Lähetetty: torstai 18. marraskuuta 2021 17.14
Vastaanottaja: mapserver-users@lists.osgeo.org
Aihe: [mapserver-users] Running on Mac Apache with Hombrew Install of Mapserver 
7.6.4

Working through server issues have not really begun to see maps yet but have 
verified mapserver is running.

Latest issues  is that I am getting the

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

When I try access demo example-1

I believe I need to add this statement to my http.conf file


SetEnv MS_MAP_PATTERN 
"^\/opt\/mapserver\/([^\.][_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$"


Maybe I have not looked hard enough but cannot find a /opt/mapserver/ directory 
in my Homebrew install?

Does it natter where in the https.conf  you place this statement?


Anyone dealt with this?

Gettin so close I can almost see a map….:)

Thanks in advance.




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


[mapserver-users] Running on Mac Apache with Hombrew Install of Mapserver 7.6.4

2021-11-18 Thread Kenneth Kniel via MapServer-users
Working through server issues have not really begun to see maps yet but have 
verified mapserver is running.

Latest issues  is that I am getting the

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

When I try access demo example-1

I believe I need to add this statement to my http.conf file

SetEnv MS_MAP_PATTERN 
"^\/opt\/mapserver\/([^\.][_A-Za-z0-9\-\.]+\/{1})*([_A-Za-z0-9\-\.]+\.(map))$"


Maybe I have not looked hard enough but cannot find a /opt/mapserver/ directory 
in my Homebrew install?

Does it natter where in the https.conf  you place this statement?


Anyone dealt with this?

Gettin so close I can almost see a map….:)

Thanks in advance.




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