Edit

Server Scope

The server scope can hold variables that exist, and are accessible to all applications on the server.

Built-in Server Scope Variables

server.coldfusion

A struct containing several keys such as productversion productname rootdir updatelevel

This is populated on both ACF and Lucee, productname is Lucee or ColdFusion.

server.os

A struct containing info about the operating system:

server.system.environment

Lucee 5+ CF 2018+ A struct containing environment variables.

server.system.properties

Lucee 5+ CF 2018+ A struct containing java system properties.

server.lucee

Lucee 4.5+ Info specific to lucee, eg server.lucee.version - useful for checking if you are running on lucee:

if ( server.keyExists("lucee") ) { //you are on lucee }

server.separator

Lucee 4.5+ a struct with keys file line and path for OS specific/preferred separators.


Fork me on GitHub