[mapserver-users] Please help

Carlos Ruiz boolean10001 at yahoo.com
Mon May 16 10:28:44 EDT 2011


Jude,

This is how I have it configured in my server:


    WEB
        IMAGEURL "/temp/"
        IMAGEPATH "/var/www/html/temp/"
    END


As you can see, I'm using the abolute path.


Cheers from México


IC Carlos Ruiz



________________________________
From: Worth Lutz <wal3 at mindspring.com>
To: 'jude mwenda' <judemwenda at gmail.com>; mapserver-users at lists.osgeo.org
Sent: Monday, May 16, 2011 5:56 AM
Subject: RE: [mapserver-users] Please help


 
Try changing:
 
WEB
TEMPLATE "template.html"
IMAGEPATH "/var/www/judemaps/output/"
IMAGEURL "/output/"
END
 
To:
 
WEB
TEMPLATE "template.html"
IMAGEPATH "/var/www/judemaps/output/"
IMAGEURL "/judemaps/output/"
END
 

________________________________
 
From:mapserver-users-bounces at lists.osgeo.org
[mailto:mapserver-users-bounces at lists.osgeo.org] On Behalf Of jude mwenda
Sent: Sunday, May 15, 2011 10:17
PM
To: mapserver-users at lists.osgeo.org
Subject: [mapserver-users] Please
help
 
 
Hi,
I am new to mapserver. I have been able to generate images, and on viewing
images folder i can see images that have been generated by mapserver. The only
problem comes in that on loading them via template the image is a broken path.
Any pointers on resolving this,
Mapfile http://dpaste.de/4bmw/

On accessing the images via http://localhost/judemaps/output/parcels_map130551107432207.gif
they do load.

Any clue on what i am doing wrong.
the template has 

<!-- MapServer Template -->
<html>
<head><title>Simple Mapserver Template HTML
Document</title></head>
<body bgcolor=#AAAAAA>
<h2>The image below was illustrated based on the instructions sent in the
mapfile.</h2>
<!-- When using Mapserver with a template, the Mapserver application looks
for the [img] tag within the template document to place the map -->
<img src="[img]" border=1>
</body>
</html>

-- 
Regards,

Jude Mwenda
Skype id: jmwenda
Twitter: www.twitter.com/judemwenda
Web: www.africangeogeek.com
    
"Was ist mein Leben, wenn ich nicht mehr nützlich für andere."
Johann Wolfgang von Goethe

________________________________
 
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1375 / Virus Database: 1500/3641 - Release Date: 05/16/11
_______________________________________________
mapserver-users mailing list
mapserver-users at lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapserver-users/attachments/20110516/9ac6a4d1/attachment.html


More information about the mapserver-users mailing list