<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div>On 7-Jul-08, at 10:20 AM, Derek Bain wrote:</div></div></div></div></span></div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><br></div></div></div></div></span></div><div><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">Hi<br><br>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<span class="Apple-converted-space">&nbsp;</span><a href="http://localhost:8081/cgi-bin/mapserv.exe">http://localhost:8081/cgi-bin/mapserv.exe</a><span class="Apple-converted-space">&nbsp;</span>works okay. I have installed the demo files to C:\mapserver_demos\workshop-5.0. Couls someone explain what I should have&nbsp; for the following lines&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>&nbsp;&nbsp;&nbsp;<span class="Apple-converted-space">&nbsp;</span><br>&nbsp; &nbsp; var snippet = "IMAGEPATH '????????'";<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; snippet += " IMAGEURL '/???????/'";<br><br>I have edited the hidden variables as follows<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;!-- EDIT THESE HIDDEN VARIABLES --><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="map" value="/mapserver_demos/workshop-5.0/itasca.map"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="program" value="<a href="http://localhost:8081/cgi-bin/mapserv.exe">http://localhost:8081/cgi-bin/mapserv.exe</a>"><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;input type="hidden" name="root" value="/mapserver_demos/workshop-5.0"><br><br>and ACTION as<br>&nbsp;&nbsp;&nbsp; &lt;!-- EDIT THE FORM ACTION --><br>&nbsp;&nbsp;&nbsp; &lt;form name="demo" method="GET" action="cgi-bin/mapserv" onSubmit="configure()"><br><br></div></div></div></span></blockquote></div><br><div><br></div><div>Well MapServer welcomes you!</div><div><br></div><div>I think these are what you need:</div><div><br></div><div>1)&nbsp;</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;var snippet = "IMAGEPATH 'C:/Program Files/ms4w/tmp/ms_tmp/'";</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;snippet += " IMAGEURL '/ms_tmp/'";</div><div><br></div><div><br></div></div><div>2) For your hidden vars, your "root" variable should point to the name of the Apache alias that you created:</div><div><br></div><div><div>&nbsp;&nbsp; &nbsp; &nbsp;&lt;input type="hidden" name="root" value="/mapserv-demo/"></div><div><br></div><div><br></div><div>...where the alias file in C:/Program Files/ms4w/httpd.d/httpd_mapserv_demo.conf would contain:</div><div><br></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space:pre">        </span>Alias /mapserv-demo/ "C:/Program Files/ms4w/apps/mapserv-demo/"</div><div><br></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;Directory "C:/Program Files/ms4w/apps/mapserv-demo/"></div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&nbsp;AllowOverride None</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&nbsp;Options Indexes FollowSymLinks Multiviews&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&nbsp;Order allow,deny</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&nbsp;&nbsp;Allow from all</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>&lt;/Directory></div><div><br></div><div>3) The form action should point to mapserv.exe such as:</div><div><br></div><div>&nbsp;&nbsp; &nbsp;&lt;form name="demo" method="GET" action="/cgi-bin/mapserv.exe" onSubmit="configure()">"</div><div><br></div><div><br></div><div><br></div><div><div>---</div><div>Jeff McKenna</div><div>FOSS4G Consulting and Training Services</div><div><div><a href="http://www.gatewaygeomatics.com/">http://www.gatewaygeomatics.com/</a></div><div><br></div></div></div></div></div><div><br></div></body></html>