[Mapserver-users] Unable to access file. set in index.html
COUTUJF at dfo-mpo.gc.ca
COUTUJF at dfo-mpo.gc.ca
Thu Jun 17 07:37:40 PDT 2004
Hello,
unfortunately, when I try to use the template I get the message:
Content-type: text/html msReturnPage(): Unable to access file. set in
index.html
Hence I don't have much info when doing a "view source".
JF
-----Message d'origine-----
De : Swaminathan, Gayathri [mailto:gayathri at ou.edu]
Envoyé : 17 juin 2004 10:00
À : COUTUJF at dfo-mpo.gc.ca; mapserver-users at lists.gis.umn.edu
Objet : RE: [Mapserver-users] Unable to access file. set in index.html
Hi:
So in your browser when you are trying to use the template, I assume you are
getting an "image not found" box...
Can ya right click or "View Source" to see if your image url appears right?
Should be something like http://serveraddress/workshop/tmp/<imagename.png>
not http://serveraddress/./workshop/tmp/<imagename.png>
(The image url .\workshop\tmp\ does not look right to me)...
Another thing to check would be is if your "tmp" directory is published as a
virtual directory in your webserver. (but since you are saying you get this
http://serveraddress/workshop/tmp/filename.png ...that seems to have been
configured right)
Gayathri
> -----Original Message-----
> From: mapserver-users-admin at lists.gis.umn.edu
> [mailto:mapserver-users-admin at lists.gis.umn.edu] On Behalf Of
> COUTUJF at dfo-mpo.gc.ca
> Sent: Thursday, June 17, 2004 7:57 AM
> To: mapserver-users at lists.gis.umn.edu
> Subject: [Mapserver-users] Unable to access file. set in index.html
>
>
> Hi everybody,
> Following the meeting in Ottawa last week, I'm
> trying to set up a demo mapserver application to show to
> management what MapServer can do for us. I'm using apache1.3
> on Windows NT4 . I customized the Itasca demo to fit my data.
> So here is my problem, let's start with the stuff that works:
>
> If I try
>
http://serveraddress/mapserv.exe?map=../htdocs/workshop/test.map&mode=ma
p
I get the map I want.
I also specified in the index.html those variables:
<input type="hidden" name="map" value="..\htdocs\workshop\test.map">
<input type="hidden" name="program" value=".\mapserv.exe">
<input type="hidden" name="root" value="..\htdocs\workshop\">
<input type="hidden" name="map_web_imagepath" value="E:\Program
Files\Apache Group\Apache\htdocs\workshop\tmp\">
<input type="hidden" name="map_web_imageurl" value=".\workshop\tmp\">
I can see that the .png files are created by mapServer in the /tmp/
directory, but when I try to use the template, hence the Initialize button
(identical to Itasca one) I get:
Content-type: text/html msReturnPage(): Unable to access file. set in
index.html
I did try to get directly to
http://serveraddress/workshop/tmp/filename.png
and I do get the png in the browser so I guess it's no security problem.
please help, thanks!
JF Coutu
Canadian Cost Guard
coutujf at dfo-mpo.gc.ca _______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users
More information about the MapServer-users
mailing list