Skip to content

Commit 2e3dd12

Browse files
committed
Merge remote-tracking branch 'origin/main' into release-8.6.0-beta1
2 parents f624efb + 7b61ebd commit 2e3dd12

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

en/optimization/environment_variables.txt

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,34 @@ MS_ERRORFILE
111111
available only after the `MS_ERRORFILE` directive has been parsed.
112112

113113
.. seealso:: :ref:`debugging`
114+
115+
.. index::
116+
pair: Environment variables; MS_INDEX_TEMPLATE_DIRECTORY
117+
118+
MS_INDEX_TEMPLATE_DIRECTORY
119+
.. versionadded:: 8.6
120+
121+
The `MS_INDEX_TEMPLATE_DIRECTORY` environment variable can be set
122+
to activate an index page that lists all mapfiles and related services.
123+
The value should point to the folder containing the HTML templates
124+
to use. This variable should be set in the MapServer :ref:`config` file.
125+
126+
If this variable is not set then the index page is not generated.
127+
128+
Example CONFIG file contents::
129+
130+
ENV
131+
#
132+
# Index page
133+
#
134+
MS_INDEX_TEMPLATE_DIRECTORY "/ms4w/share/ogcapi/templates/html-index-bootstrap/"
135+
END
136+
137+
and then calls the mapserv CGI should return the index page::
138+
139+
http://127.0.0.1/cgi-bin/mapserv.exe
140+
141+
.. seealso:: :ref:`index-page` & :ref:`rfc140`
114142

115143
.. index::
116144
pair: Environment variables; MS_MAP_NO_PATH

0 commit comments

Comments
 (0)