<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for all the valuable help!<div><br></div><div>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&….</div><div><br></div><div>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?)?</div><div><br></div><div>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: <a href="http://my_url.org/my_script">http://my_url.org/my_script</a>, right? Hmmmm...</div><div><br></div><div>It says:</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>#!/bin/sh</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>MAPSERV="/path/to/my/mapserv"</div><div><span class="Apple-tab-span" style="white-space: pre; ">   </span>MS_MAPFILE="/path/to/my/mapfile.map" exec ${MAPSERV}</div></div><div><br></div><div>Thanks for any help!</div><div><br></div><div>Stefan</div><div><br></div><div><br></div><div><br></div><div><div>On 06.01.2014, at 11:03, Siki Zoltan wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi Stefan,<br><br>you should hide your map file using a wrapper script on the server side.<br>See <a href="http://mapserver.org/cgi/wrapper.html">http://mapserver.org/cgi/wrapper.html</a><br>You can find some other methods at <a href="http://mapserver.org/ogc/wms_server.html">http://mapserver.org/ogc/wms_server.html</a><br>look for "Changing the Online Resource URL"<br><br>Regards,<br>Zoltan<br><br>On Mon, 6 Jan 2014, Stefan Schwarzer wrote:<br><br><blockquote type="cite">Hi there,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span>    # Layers definition ---------------------<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">   </span>    LAYER<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span>        NAME wilderness_areas_po<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>METADATA<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>'wcs_label'           'Wilderness Areas'<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">     </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>'wcs_rangeset_name'   'test'<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>'wcs_rangeset_label'  'test label'<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">        </span><span class="Apple-tab-span" style="white-space:pre">    </span><span class="Apple-tab-span" style="white-space:pre">    </span>END<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span>        TYPE RASTER<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span>        STATUS OFF<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>        DATA wilderness_areas_po<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span>        CONNECTIONTYPE postgis<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">      </span>        CONNECTION 'user=my_username password=my_password dbname=my_database'<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">       </span>        PROJECTION<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">  </span>            'init=epsg:4326'<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre">    </span>        END<br></blockquote><blockquote type="cite"><span class="Apple-tab-span" style="white-space:pre"> </span><span class="Apple-tab-span" style="white-space:pre">    </span>END<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">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.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">What are your recommendations?<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks for any hints.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Stefan<br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">mapserver-users mailing list<br></blockquote><blockquote type="cite"><a href="mailto:mapserver-users@lists.osgeo.org">mapserver-users@lists.osgeo.org</a><br></blockquote><blockquote type="cite"><a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users">http://lists.osgeo.org/mailman/listinfo/mapserver-users</a><br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div><br></body></html>