<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 <richard.greenwood@gmail.com>@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 <relicary@gmail.com></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]  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 <relicary@gmail.com>:<br>
> Hi!<br>
><br>
> I'm creating a new mapfile and when I arrive to the WMS_ONLINERESOURCE<br>
> tag  the "map" paremeter at the URL I would like
i'll be a relative path,<br>
> non an absolute.<br>
><br>
> For example, now my mapfile is like this:<br>
><br>
> "wms_onlineresource"<br>
> "http://localhost:80/cgi-bin/mapserv.exe?map=C%3A%5CFiles%5Capps%5Cdemo%5CdemoCV.map"<br>
><br>
> And the great solution could be:<br>
><br>
> "wms_onlineresource"<br>
> "http://localhost:80/cgi-bin/mapserv.exe?map=%5Capps%5Cdemo%5CdemoCV.map"<br>
><br>
> 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>
  SetEnv MYMAP   "C:/Files/apps/demo/demoCV.map"<br>
Those are forward slashes not back slashes even though it's Windows.<br>
And your URL is now<br>
  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>