[mapserver-users] Network / UNC access problems

Emerson, Gabe gemerson at WelshCo.com
Wed Aug 6 07:42:10 PDT 2008


On further review with the IT department, it turns out our IIS server
wasn't set up quite as expected. The anonymous web user had access to
.html and .txt files, but not other file types, and only through http
paths (not UNC). If it's of any interest, I was able to use some
resources in mapserver by specifying the full http:// path to the file.
This worked for the template, and DrawRaster seems like it would have
worked if not for an unrelated problem, but DrawSHP wanted to append the
http path onto the local web directory path. 

Once IT got the permissions sorted out, everything works. Thanks to the
people who responded with suggestions. 

-Gabe


-----Original Message-----
From: mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of Emerson,
Gabe
Sent: Friday, August 01, 2008 9:19 AM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Network / UNC access problems

Hello everyone,

Once again I have an issue that's apparently been solved before, but
doesn't work for me. Hopefully this is an ability that Mapserver still
retains. 

I'm trying to access network resources (in an IIS environment) from
mapserver. The IT people have set up the web server with a domain
account, and given it access to the relevant network drives (it's
Intranet only, inside our firewall). They've also set up some virtual
folders pointing to the network locations, and put those into the
mapserver directory.

The web server has no problem accessing the files, I can browse to the
data through it (as in "domain.com/aeimagery/minr2c2.ecw". However,
Mapserver's CGI isn't able to access the data. 
I've tried using the standard UNC path:
DATA "\\server\aeimagery\minr2c2.ecw"

I've also tried using the local shortcuts that IT set up, as in:
DATA "../AEImagery/MINr2c2.ecw"

And as the full web server path:
DATA "D:/inetpub/gis/AEImagery/MINr2c2"

I've tried /, \, all lowercase, etc. I've also confirmed that local
copies of the aerials and shapefiles work.

For aerials I simply get nothing to appear. For shapefiles I get the
usual:
msDrawMap(): Image handling error. Failed to draw layer named
'Metro_Area'. msSHPOpenFile(): Unable to access file.
(\\server\data\research\esri\county) msSHPOpenFile(): Unable to access
file. (\\server\data\research\esri\county)

Since I'm not in control of the server config, I can't guarantee that
everything in IIS is set up correctly. IT tells me that the webserver
process is a domain user, and they've seen the prior mailing list posts
on this topic. Since I can access the virtual folders that point at the
network resources, I assume the server and its processes have the proper
access. At this point I'm stumped as to what else is necessary, or what
else I can ask IT to test for. Any suggestions would be appreciated!

-Gabe Emerson

_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list