<br><div class="gmail_quote">2013/8/8 Mark Volz <span dir="ltr"><<a href="mailto:MarkVolz@co.lyon.mn.us" target="_blank">MarkVolz@co.lyon.mn.us</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello<br>
<br>
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?<br>
<br>
For example:<br>
Public Users, or any users<br>
<a href="http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map" target="_blank">http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=public_map</a><br>
Internal Users<br>
<a href="http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map" target="_blank">http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=internal_map</a><br>
External users with the correct username and password<br>
<a href="http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map" target="_blank">http://geomoose.lyonco.org/cgi-bin/mapserv.exe?map=password_protected_map</a><br>
<br>
Thank You<br>
<br>
<br>
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<br>
<br>
<br>
Mark Volz, GISP<br>
GIS Specialist<br></blockquote><div><br></div><div>You can use apache mod_aut* modules to setup a username/password protected area.</div><div>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.</div>
<div><br></div><div>If you are running a front end like pmapper or a openlayers based one you can quickly grant access using both methods.</div><div><br></div><div>/r</div></div>