<br><font size=2 face="sans-serif">How do you manage the server/domain
name in the mapfile for wms_onlineressource when migrating from dev to
prod environment.</font>
<br><font size=2 face="sans-serif">Per example,<br>
</font><tt><font size=2>http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP</font></tt>
<br>
<br><font size=2 face="sans-serif">Do we need to manually change </font><tt><font size=2>localhost:80</font></tt><font size=2 face="sans-serif">
before migrating to prod?</font>
<br><font size=2 face="sans-serif">thanks</font>
<br><font size=2 face="sans-serif">steve</font>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Richard Greenwood &lt;richard.greenwood@gmail.com&gt;@lists.osgeo.org</b>
</font>
<br><font size=1 face="sans-serif">Envoyé par : mapserver-users-bounces@lists.osgeo.org</font>
<p><font size=1 face="sans-serif">2012-01-24 21:16</font>
<td width=59%>
<table width=100%>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">A</font></div>
<td><font size=1 face="sans-serif">Juan Jesús Cremades Monserrat &lt;relicary@gmail.com&gt;</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td><font size=1 face="sans-serif">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">[Polluriel potentiel] &nbsp;Re: [mapserver-users]
Relative path's in mapfile</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><tt><font size=2>2012/1/24 Juan Jesús Cremades Monserrat &lt;relicary@gmail.com&gt;:<br>
&gt; Hi!<br>
&gt;<br>
&gt; I'm creating a new mapfile and when I arrive to the&nbsp;WMS_ONLINERESOURCE<br>
&gt; tag&nbsp;&nbsp;the &quot;map&quot; paremeter at the URL I would like
i'll be a relative path,<br>
&gt; non an absolute.<br>
&gt;<br>
&gt; For example, now my mapfile is like this:<br>
&gt;<br>
&gt; &quot;wms_onlineresource&quot;<br>
&gt; &quot;http://localhost:80/cgi-bin/mapserv.exe?map=C%3A%5CFiles%5Capps%5Cdemo%5CdemoCV.map&quot;<br>
&gt;<br>
&gt; And the great solution could be:<br>
&gt;<br>
&gt; &quot;wms_onlineresource&quot;<br>
&gt; &quot;http://localhost:80/cgi-bin/mapserv.exe?map=%5Capps%5Cdemo%5CdemoCV.map&quot;<br>
&gt;<br>
&gt; Is it possible? Thanks<br>
<br>
I believe the map file path is relative to mapserv.exe. You can test<br>
this yourself.<br>
<br>
A more common and flexible approach is to set and environment variable<br>
in your Apache httpd.conf file, for example<br>
 &nbsp;SetEnv MYMAP &nbsp; &quot;C:/Files/apps/demo/demoCV.map&quot;<br>
Those are forward slashes not back slashes even though it's Windows.<br>
And your URL is now<br>
 &nbsp;http://localhost:80/cgi-bin/mapserv.exe?map=MYMAP<br>
This is considered to be more secure because you are not exposing your<br>
file system path to the public.<br>
<br>
Rich<br>
-- <br>
Richard Greenwood<br>
richard.greenwood@gmail.com<br>
www.greenwoodmap.com<br>
_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users<br>
</font></tt>
<br>
<br>
<br>