[GIS] MapServer: msWMSGetCapabilities(): WMS server error. WMS request not enabled

mapfilemapserverwms

I took a look at Getting MapServer to show raster?, and although helpful, it did not solve my issue.

After spending the last couple days on this, I am confused as to why I'm getting:

msWMSGetCapabilities(): WMS server error. WMS request not enabled. Check wms/ows_enable_request settings

I've tried

"wms_enable_request" "*"

along with

"ows_enable_request" "*"

both in METADATA under WEB and METADATA under LAYER

As for my URL, I am using:

http://192.168.2.164/cgi-bin/mapserv.exe?map=/data2/html/OL_AllWorldAirports/catest.map&SERVICE=WMS&REQUEST=GetCapabilities

I initially had the VERSION set too (to 1.1.1) but I read somewhere this is not a necessity.

/tmp/mapserver3.log is not providing much help.

In regards to how the mapfile(s) and data are set up:

-I have one mapfile which has one layer. Within that layer, I reference another mapfile. The mapfile (catest.map) being referenced uses an OGR connection and connects to a .db file.

See here for the mapfiles: https://gist.github.com/DavidPardy/5911943

I feel that I'm close and have some glaring error somewhere, but not sure where to pinpoint it.

Best Answer

place this in your map file under MAP > WEB:

METADATA 
    WMS_ENABLE_REQUEST "*" 
END
Related Question