Question about wms and mapfile location/restriction

Kralidis,Tom [Burlington] Tom.Kralidis at EC.GC.CA
Tue Oct 10 11:53:54 PDT 2006


What OS are you using?  And what HTTP server are you using?

For example, if using UNIX and Apache, what I would do is:

- place a mapserv binary in cgi-bin/
- foreach mapfile
  - create a shell script (see
http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onlin
e-resource-url) which points to mapserv after declaring the MS_MAPFILE
variable to be used.

..Tom


> -----Original Message-----
> From: B Tuttle [mailto:funkbucket at gmail.com] 
> Sent: 10 October, 2006 1:44 PM
> To: Kralidis,Tom [Burlington]
> Cc: MAPSERVER-USERS at lists.umn.edu
> Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and 
> mapfile location/restriction
> 
> When using multiple instances of mapserv how do I configure 
> what mapfiles each instance is able to use?
> 
> On 10/4/06, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
> >
> >
> > > -----Original Message-----
> > > From: UMN MapServer Users List
> > > [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On Behalf Of B Tuttle
> > > Sent: 04 October, 2006 5:49 PM
> > > To: MAPSERVER-USERS at LISTS.UMN.EDU
> > > Subject: [UMN_MAPSERVER-USERS] Question about wms and mapfile 
> > > location/restriction
> > >
> > > Hi all-
> > >
> > > Part1-
> > >     So far to use wms I have to have the mapfile in the same 
> > > direcotry as mapserv. Any thoughts on how to set it up so 
> I can have 
> > > my mapfile in a differnet location?
> > >
> >
> > You can have the mapfile anywhere on the filesystem, and 
> refer to it 
> > in your WMS server URL as:
> >
> > http://host/cgi-bin/mapserv?map=/path/to/mapfile.map
> >
> > This is a legal OGC WMS server URL, which would be visible in your 
> > Capabilities XML.
> >
> > Note you can also hide the mapfile location if you wish (see:
> > 
> http://mapserver.gis.umn.edu/docs/howto/wms_server/#more-about-the-onl
> > in
> > e-resource-url for more info).
> >
> > > Part 2-
> > >     I need to set up my server so some mapfiles are available to 
> > > anyone and some are password restricted. Is there a way to use a 
> > > config file or multiple instances of mapserv to suggest 
> what mapfile 
> > > (or direcotry hieracrhies) it can access?
> > >
> >
> > You can use multiple instances of mapserv and apply authentication 
> > rules to them via your web server configuration.
> >
> > Or, you can use the new Mapscript WxS API, which allows for the OGC 
> > specs API to be exposed through scripting languages like 
> python, perl, 
> > php, and java.  The API will allow you to work in between 
> the request 
> > / response chain.  Here you can develop an authentication 
> layer of sorts.
> > See http://mapserver.gis.umn.edu/docs/howto/wxs_mapscript 
> for more info.
> > This is relatively new functionality in MapServer/mapscript and not 
> > extensively tested.
> >
> > > Any help would be greatly appreciated.
> > >
> >
> 



More information about the MapServer-users mailing list