[mapserver-commits] r12010 - branches/branch-6-0/docs/en/cgi trunk/docs/en/cgi

svn at osgeo.org svn at osgeo.org
Fri Aug 5 09:43:05 EDT 2011


Author: havatv
Date: 2011-08-05 06:43:05 -0700 (Fri, 05 Aug 2011)
New Revision: 12010

Modified:
   branches/branch-6-0/docs/en/cgi/controls.txt
   trunk/docs/en/cgi/controls.txt
Log:
Added info on the use of apache variables for specifying the location of map files in the cgi controls document (#2958).

Modified: branches/branch-6-0/docs/en/cgi/controls.txt
===================================================================
--- branches/branch-6-0/docs/en/cgi/controls.txt	2011-08-05 13:27:11 UTC (rev 12009)
+++ branches/branch-6-0/docs/en/cgi/controls.txt	2011-08-05 13:43:05 UTC (rev 12010)
@@ -348,7 +348,27 @@
 feature. You can repeat the process to create additional features. This is 
 really intended for very small (point, rectangle) amounts of data.
 
+Specifying the location of mapfiles using an Apache variables
+=============================================================
 
+Apache variables can be used to specify the location of map files
+(instead of exposing full mapfile paths to the outside world).
+
+1. Set the variable (in this example `MY_MAPFILE`) in Apache's
+   httpd.conf:
+
+   ::
+
+          SetEnv MY_MAPFILE "/opt/mapserver/map1/mymapfile.map"
+
+2. Refer to the variable in the mapserver CGI URL:
+
+   ::
+
+          http://localhost/cgi-bin/mapserv?map=MY_MAPFILE&mode=...
+
+
+
 ROSA-Applet Controls
 ====================
 

Modified: trunk/docs/en/cgi/controls.txt
===================================================================
--- trunk/docs/en/cgi/controls.txt	2011-08-05 13:27:11 UTC (rev 12009)
+++ trunk/docs/en/cgi/controls.txt	2011-08-05 13:43:05 UTC (rev 12010)
@@ -348,7 +348,27 @@
 feature. You can repeat the process to create additional features. This is 
 really intended for very small (point, rectangle) amounts of data.
 
+Specifying the location of mapfiles using an Apache variables
+=============================================================
 
+Apache variables can be used to specify the location of map files
+(instead of exposing full mapfile paths to the outside world).
+
+1. Set the variable (in this example `MY_MAPFILE`) in Apache's
+   httpd.conf:
+
+   ::
+
+          SetEnv MY_MAPFILE "/opt/mapserver/map1/mymapfile.map"
+
+2. Refer to the variable in the mapserver CGI URL:
+
+   ::
+
+          http://localhost/cgi-bin/mapserv?map=MY_MAPFILE&mode=...
+
+
+
 ROSA-Applet Controls
 ====================
 



More information about the mapserver-commits mailing list