<br><font size=2 face="sans-serif">To use this url </font><a href=http://my_url.org/my_script><font size=3 color=blue><u>http://my_url.org/my_script</u></font></a>
<br><font size=2 face="sans-serif">I would create a file my_script in cgi-bin
per example</font>
<br><font size=2 face="sans-serif">See here</font>
<br><font size=2 face="sans-serif">http://mapserver.org/fr/cgi/wrapper.html<br>
</font>
<br><font size=2 face="sans-serif">I use a mix of above and this</font>
<br><font size=2 face="sans-serif">http://mapserver.org/fr/ogc/mapscript.html</font>
<br>
<br><font size=2 face="sans-serif">Steve</font>
<br>
<br>
<p>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td width=40%><font size=1 face="sans-serif"><b>Stefan Schwarzer <stefan.schwarzer@unep.org>@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">2014-01-07 05:47</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">mapserver-users@lists.osgeo.org</font>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">cc</font></div>
<td>
<tr valign=top>
<td>
<div align=right><font size=1 face="sans-serif">Objet</font></div>
<td><font size=1 face="sans-serif">Re: [mapserver-users] How to deal with
(visible) CONNECTION        information in
.MAP file for WMS purposes</font></table>
<br>
<table>
<tr valign=top>
<td>
<td></table>
<br></table>
<br>
<br>
<br>
<br>
<br><font size=3>Thanks for all the valuable help!</font>
<br>
<br><font size=3>If I place the .MAP file somewhere where only the system
can read it, the request looks a bit awkward: ….map=/home/include/mapfiles/my_map.map&….</font>
<br>
<br><font size=3>Would there a possibility to juste use …map=my_map&…
and have the path then get added/understood by some internal configuration
(mod_rewrite perhaps?)?</font>
<br>
<br><font size=3>For the Wrapper, I don't really understand how that one
would work. I have multiple .MAP files. And they need to by WMS-compliant.
If I understand correctly, the URL would call the script: </font><a href=http://my_url.org/my_script><font size=3 color=blue><u>http://my_url.org/my_script</u></font></a><font size=3>,
right? Hmmmm...</font>
<br>
<br><font size=3>It says:</font>
<br>
<br><font size=3>#!/bin/sh</font>
<br><font size=3>MAPSERV="/path/to/my/mapserv"</font>
<br><font size=3>MS_MAPFILE="/path/to/my/mapfile.map" exec ${MAPSERV}</font>
<br>
<br><font size=3>Thanks for any help!</font>
<br>
<br><font size=3>Stefan</font>
<br>
<br>
<br>
<br><font size=3>On 06.01.2014, at 11:03, Siki Zoltan wrote:</font>
<br>
<br><font size=3>Hi Stefan,<br>
<br>
you should hide your map file using a wrapper script on the server side.<br>
See </font><a href=http://mapserver.org/cgi/wrapper.html><font size=3 color=blue><u>http://mapserver.org/cgi/wrapper.html</u></font></a><font size=3><br>
You can find some other methods at </font><a href=http://mapserver.org/ogc/wms_server.html><font size=3 color=blue><u>http://mapserver.org/ogc/wms_server.html</u></font></a><font size=3><br>
look for "Changing the Online Resource URL"<br>
<br>
Regards,<br>
Zoltan<br>
<br>
On Mon, 6 Jan 2014, Stefan Schwarzer wrote:<br>
</font>
<br><font size=3>Hi there,</font>
<br>
<br><font size=3>I am wondering how to deal with the CONNECTION information
in the .MAP which is used for WMS requests. As the .MAP file must be visible
and is readable, the CONNECTION information for my database is readable
too.</font>
<br>
<br><font size=3>   # Layers definition ---------------------</font>
<br><font size=3>   LAYER</font>
<br><font size=3>       NAME wilderness_areas_po</font>
<br><font size=3>METADATA</font>
<br><font size=3>'wcs_label'           'Wilderness
Areas'</font>
<br><font size=3>'wcs_rangeset_name'   'test'</font>
<br><font size=3>'wcs_rangeset_label'  'test label'</font>
<br><font size=3>END</font>
<br><font size=3>       TYPE RASTER</font>
<br><font size=3>       STATUS OFF</font>
<br><font size=3>       DATA wilderness_areas_po</font>
<br><font size=3>       CONNECTIONTYPE postgis</font>
<br><font size=3>       CONNECTION 'user=my_username
password=my_password dbname=my_database'</font>
<br><font size=3>       PROJECTION</font>
<br><font size=3>           'init=epsg:4326'</font>
<br><font size=3>       END</font>
<br><font size=3>END</font>
<br>
<br>
<br><font size=3>Either I would then need to create a very simple user
for that case which really only can read the data, or I should hide the
file in a directory which is not readable by a webuser. But I guess that
Mapserver wouldn't like that.</font>
<br>
<br><font size=3>What are your recommendations?</font>
<br>
<br><font size=3>Thanks for any hints.</font>
<br>
<br><font size=3>Stefan</font>
<br><font size=3>_______________________________________________</font>
<br><font size=3>mapserver-users mailing list</font>
<br><a href="mailto:mapserver-users@lists.osgeo.org"><font size=3 color=blue><u>mapserver-users@lists.osgeo.org</u></font></a>
<br><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users"><font size=3 color=blue><u>http://lists.osgeo.org/mailman/listinfo/mapserver-users</u></font></a>
<br>
<br><tt><font size=2>_______________________________________________<br>
mapserver-users mailing list<br>
mapserver-users@lists.osgeo.org<br>
http://lists.osgeo.org/mailman/listinfo/mapserver-users</font></tt>
<br>
<br>
<br>