[mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

Rahkonen Jukka (MML) jukka.rahkonen at maanmittauslaitos.fi
Mon Nov 15 11:57:06 PST 2021


Hi,

Please use “Reply all” for sending mail to the list as well. If your trouble gets solved the mailing list archives may help other Mapserver users later.

You have such a new Mapserver version that you must take care of some additional security settings https://www.mapserver.org/optimization/limit_mapfile_access.html#limit-mapfile-access

Have a look at your Apache httpd.conf file. Do you see a configuration of environment variable MS_MAP_PATTERN there? I am sorry but I cannot help with writing correct regexp, I do not really understand it myself. It takes me usually a few copy-paste-edit-test rounds to make the regexp work.

-Jukka Rahkonen-

Lähettäjä: Kenneth Kniel <kkniel at mac.com>
Lähetetty: maanantai 15. marraskuuta 2021 21.37
Vastaanottaja: Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi>
Aihe: Re: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

Thank you sir.

Now I have Bobb's problem  a permissions issue I believe.

msLoadMap(): Unable to access file. (/ms4w/apps/tutorial/htdocs/example1-1.map)



On Nov 15, 2021, at 2:03 PM, Rahkonen Jukka (MML) <jukka.rahkonen at maanmittauslaitos.fi<mailto:jukka.rahkonen at maanmittauslaitos.fi>> wrote:

Hi,

You seem to have an extra space character in your url after /mapserv?. See %20 in that place, it is space as url-encoded.

-Jukka Rahkonen-


Lähettäjä: MapServer-users <mapserver-users-bounces at lists.osgeo.org<mailto:mapserver-users-bounces at lists.osgeo.org>> Puolesta Kenneth Kniel via MapServer-users
Lähetetty: maanantai 15. marraskuuta 2021 20.19
Vastaanottaja: mapserver-users at lists.osgeo.org<mailto:mapserver-users at lists.osgeo.org>
Aihe: [mapserver-users] msCGILoadMap(): Web application error. CGI variable "map" is not set

Mac OS 11.6.1
Mapserver 7.6.4. Homebrew install

Working my way through the tutorial.  Going slow a lot of permission issues.

The Mapserver is running I go the no query response when I access from the server.


Trying to run the first example
//localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map<http://localhost/cgi-bin/mapserv?%20map=/ms4w/apps/tutorial/htdocs/example1-1.map&layer=states&mode=map>

Getting error in subject line above.

Thoughts?

Thanks in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20211115/863dfdca/attachment.htm>


More information about the MapServer-users mailing list