The server scope can hold variables that exist, and are accessible to all applications on the server.
server.coldfusionA struct containing several keys such as productversion productname rootdir updatelevel
This is populated on both ACF and Lucee, productname is Lucee or ColdFusion.
server.osA struct containing info about the operating system:
server.os.name - The OS Name, e.g. UNIX Mac OS X Windowsserver.os.version - The OS Versionserver.os.arch - The CPU architecture, e.g. amd64server.os.additionalinformation - Additional OS info, e.g. 'Linuxserver.system.environmentLucee 5+ CF 2018+ A struct containing environment variables.
server.system.propertiesLucee 5+ CF 2018+ A struct containing Java system properties.
server.luceeLucee 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.separatorLucee 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.