[mapserver-users] remote SLD problem
DeDuikertjes
DeDuikertjes at xs4all.nl
Mon Sep 28 09:14:02 PDT 2009
Hello,
this is my problem, please help
mapserver is running ok, and this gives me a nice picture:
http://mydomain.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326
Now, I'd like to use a SLD to do some styling. So I've made myself a
nice SLD and I use the url:
http://check.tercera-ro.nl/cgi-bin/mapserv?map=../html/plancheck_test/data/0999_check/NL.IMRO.0999.BP2008000001-0005/wkt/NL.IMRO.0999.BP2008000001-0005.map&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&BBOX=6.36411,51.8821,6.37681,51.8897&Layers=NL.IMRO.0999.BP2008000001-0005&Format=image/png&width=800&height=600&SRS=EPSG:4326&SLD=http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld
ok, the SLD is at the specified location and I can view it with my browser.
mapserver returns an error document with:
msHTTPExecuteRequests(): HTTP request error. HTTP: request failed with
curl error code 7 (Failed to connect to 85.12.17.114: Permission denied)
for http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld
That puzzled me for a while, but then I tried (from the box where
mapserver runs):
su -c 'wget
http://mydomain.nl/plancheck_test/data/0999_check/bestplan.sld' -s
/bin/sh nobody
that returns:
bestplan.sld: Permission denied
So user nobody can't get to the SLD. I believe mapserver is running as
nobody because I believe apache does.
I think that's the problem.
But then, how to solve this?
Any help greatly appreciated ...
MArco
More information about the MapServer-users
mailing list