[mapserver-users] securing mapserver layers

Raffaele Morelli raffaele.morelli at gmail.com
Fri Aug 9 03:18:00 PDT 2013


2013/8/8 Mark Volz <MarkVolz at co.lyon.mn.us>

> Hello
>
> I would like to set up mapserver so that some map files are open to
> anyone, some open to only internal users, and other maps are only open to
> users that enter in a user name and password.  Is there a way to set up
> mapserver / Apache so that I can secure the mapserver services for
> different types of users?
>
> For example:
> Public Users, or any users
>         http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map
> Internal Users
>         http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map
> External users with the correct username and password
>
> http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map
>
> Thank You
>
>
> p.s.  I asked a similar question in the past, but I am having trouble
> finding that question and response.  So I appologize for asking the same
> question again
>
>
> Mark Volz, GISP
> GIS Specialist
>

You can use apache mod_aut* modules to setup a username/password protected
area.
If you are planning to use mapserver as WMS server, you should consider to
use allow/deny on a file type level (<files >and/or <location> directives)
according to ip addresses.

If you are running a front end like pmapper or a openlayers based one you
can quickly grant access using both methods.

/r
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20130809/cdcd04e4/attachment.html>


More information about the mapserver-users mailing list