[mapserver-users] Map Demo Setup Help Required
Jeff McKenna
jmckenna at gatewaygeomatics.com
Mon Jul 7 08:02:01 PDT 2008
On 7-Jul-08, at 10:20 AM, Derek Bain wrote:
> Hi
>
> I am new to MapServer and I am having problems correctly setting the
> changes required to Index.html. MapServer is running locally on
> Windows XP and is located in c:\program files\ms4w and is listening
> on port 8081 and http://localhost:8081/cgi-bin/mapserv.exe works
> okay. I have installed the demo files to C:\mapserver_demos
> \workshop-5.0. Couls someone explain what I should have for the
> following lines
>
> var snippet = "IMAGEPATH '????????'";
> snippet += " IMAGEURL '/???????/'";
>
> I have edited the hidden variables as follows
> <!-- EDIT THESE HIDDEN VARIABLES -->
> <input type="hidden" name="map" value="/mapserver_demos/
> workshop-5.0/itasca.map">
> <input type="hidden" name="program" value="http://localhost:8081/cgi-bin/mapserv.exe
> ">
> <input type="hidden" name="root" value="/mapserver_demos/
> workshop-5.0">
>
> and ACTION as
> <!-- EDIT THE FORM ACTION -->
> <form name="demo" method="GET" action="cgi-bin/mapserv"
> onSubmit="configure()">
>
Well MapServer welcomes you!
I think these are what you need:
1)
var snippet = "IMAGEPATH 'C:/Program Files/ms4w/tmp/ms_tmp/'";
snippet += " IMAGEURL '/ms_tmp/'";
2) For your hidden vars, your "root" variable should point to the name
of the Apache alias that you created:
<input type="hidden" name="root" value="/mapserv-demo/">
...where the alias file in C:/Program Files/ms4w/httpd.d/
httpd_mapserv_demo.conf would contain:
Alias /mapserv-demo/ "C:/Program Files/ms4w/apps/mapserv-demo/"
<Directory "C:/Program Files/ms4w/apps/mapserv-demo/">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
3) The form action should point to mapserv.exe such as:
<form name="demo" method="GET" action="/cgi-bin/mapserv.exe"
onSubmit="configure()">"
---
Jeff McKenna
FOSS4G Consulting and Training Services
http://www.gatewaygeomatics.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20080707/fe6e6c77/attachment.htm>
More information about the MapServer-users
mailing list