GAS Configuration Reference / Configuration file elements |
The DOCUMENT_ROOT element specifies root directories that determine filesystem paths to serve files. The default document root directory (res.path.docroot) is FGLASDIR/web. This directory is the default bootstrap template path which is searched for CSS, JavaScript, demos.html, and other files served to the Genero Web Client for JavaScript (GWC-JS) front-end by the Application Server, see GWC-JS.
For the GAS, other root directories can be specified as required. For example, the resource path res.path.docroot.user, which is not defined in the GAS configuration file by default, can be set as required for files generated at runtime, such as reports generated by the Genero Report Engine (GRE).
<DOCUMENT_ROOT> docroot; docrootuser </DOCUMENT_ROOT>
It allows for multiple document root paths to be specified, the separator used between resource paths is a semi-colon, ';'.
<DOCUMENT_ROOT>/usr/fgl2c/as/web</DOCUMENT_ROOT>
In this usage example, if you have the demos.html file in this directory and wish to access the file, use the URL: http://<app_server>:<port>/demos.html (where the file is on the host where the GAS resides) or http://<web_server>/gas/demos.html (where the file is on the Web server host), see File serving URIs.