[mapserver-dev] - Enable/Disable Layers in OGC Web Services by IP Lists

scott159 at free.fr scott159 at free.fr
Thu Jun 6 11:40:37 PDT 2013


Hi,

I try to use RFC 90 (http://mapserver.org/development/rfc/ms-rfc-90.html) to secure OGC Web Services by IP lists.
To allow access to IP address 150.150.150.150, I create following .map :

MAP

IMAGETYPE	AGGA
IMAGECOLOR	255 255 255

PROJECTION
"init=epsg:4326"
END

OUTPUTFORMAT
NAME 'AGGA'
DRIVER "AGG/PNG"
IMAGEMODE RGBA
END

EXTENT -180 -90 180 90

WEB
METADATA
	"wms_title" "WMS test Server"
	"wms_onlineresource" "http://140.140.140.140/cgi-bin/mapserv.fcgi?map=/home/data/test.map&"
	"wms_srs" "epsg:4326"
	"wms_format" "image/png"
	"ows_enable_request" "*"
END
END

LAYER
NAME test
DATA "/home/data/test.tif"
STATUS ON
TYPE RASTER
OFFSITE 0 0 0
OPACITY ALPHA
METADATA
"wms_title" "test"
"wms_srs" "epsg:4326"
"ows_enable_request" "*"
"ows_allowed_ip_list" "150.150.150.150"
END
PROJECTION 
"init=epsg:4326"
END
END

END

But I have following message with a getcapabilities request : "WARNING: No WMS layers are enabled. Check wms/ows_enable_request settings."
With a getmap request, response is ok : layer is enable for only IP address 150.150.150.150

Why getmap request is allowed and getcapabilities is denied ?

Thanks a lot


More information about the mapserver-dev mailing list