Fundamentals |
When the Genero Application Server starts an application process, it sets environment variables from various sources. The application process can be started as a DVM, as an intermediate script or whatever is specified in the application configuration.
This list identifies where environment variables come from and the order that they are applied.
The names of these variables are prefixed by FGL_WEBSERVER_HTTP_ and minus (-) characters replaced by underscore (_) characters.
For example, the User-Agent header is set as FGL_WEBSERVER_HTTP_USER_AGENT=<...>.
FGL_WEBSERVER_REMOTE_USER holds the REMOTE_USER value provided by the Web Server.
FGL_WEBSERVER_REMOTE_ADDR holds the REMOTE_ADDR value provided by the Web Server.
The header name is X-FourJs-Environment-Parameter-xxx, where xxx is the header name.
For example, the server name is found in X-FourJs-Environment-Variable-SERVER_NAME.
In a delegate example using Genero Web Services, the X-FourJs-Environment-Parameter-Other header is for Genero Web Services:LET param2 = req.getRequestHeader("X-FourJs-Environment-Parameter-Other")