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, e.g. 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.

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub