[mapserver-users] Securing a WMS server
Rahkonen Jukka
Jukka.Rahkonen at mmmtike.fi
Sat Sep 18 00:04:03 PDT 2010
Hi,
Those mapfile parameters are for Mapserver so that it can contact another WMS that is behind basic authentication.
Your own WMS can not be put behind basic auth from a mapfile, you must configure Apache for that.
-Jukka Rahkonen-
YC Nyon wrote:
> Hi,
> I been trying to secure my WMS server resource via login/password using the mapfile configuration below. However, it's not working as it doensn't ask for any login/pwd with my testing using a wms client like Arcgis 9.3
The image map will just appear as usual.
> Rgds
> YC
-----------------------
WEB
TEMPLATE "default.html"
IMAGEPATH "C:\web\soul\wms\temp\"
IMAGEURL "/temp/"
METADATA
WMS_TITLE "Map Service"
WMS_ABSTRACT "GIS"
WMS_SERVER_VERSION "1.1.1"
WMS_ONLINERESOURCE "http://localhost?map=/webwms/wms.map&"
WMS_SRS "EPSG:4326"
WMS_AUTH_TYPE "basic"
WMS_AUTH_USERNAME "1234" # username here
WMS_AUTH_PASSWORD "1234" # password here
END
END
More information about the MapServer-users
mailing list