Question about wms and mapfile location/restriction

B Tuttle funkbucket at GMAIL.COM
Wed Oct 11 13:05:42 EDT 2006


Okay, I think I'm almost there. How do I form the URL assuming I have
this shell script in my htdocs directory? I'm a little unclear on
whether I can directly reference the shell script or if it has to be
called within an html file or what. Thanks for the help.

On 10/10/06, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
>
> Correct.
>
> > -----Original Message-----
> > From: B Tuttle [mailto:funkbucket at gmail.com]
> > Sent: 10 October, 2006 4:00 PM
> > To: Kralidis,Tom [Burlington]
> > Cc: MAPSERVER-USERS at lists.umn.edu
> > Subject: Re: [UMN_MAPSERVER-USERS] Question about wms and
> > mapfile location/restriction
> >
> > I'm using Linux and Apache. The sheel script looks like a
> > nice way to go. Does this set up mean one mapserv binary and
> > using apache to restrict acces to the shell script and thus
> > the mapfiles?
> >
> > On 10/10/06, Kralidis,Tom [Burlington] <Tom.Kralidis at ec.gc.ca> wrote:
> > >
> > > 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-onl
> > > in
> > > 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-o
> > > > nl
> > > > > 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