Server Settings - Settings

Configure general server settings and request handling behavior

Overview

The Server Settings page contains fundamental configuration options that control how ColdFusion handles requests, errors, and missing templates. These settings affect global server behavior and should be configured carefully based on your application requirements and environment.

Request Settings

Control how ColdFusion processes and manages incoming requests.

Timeout Requests After (seconds)

PurposeMaximum time a request can run before being terminated
Default60 seconds
RecommendationProduction: 30-60 seconds for web requests
Development: 120+ seconds for debugging
Batch Processing: Higher timeouts as needed
ImpactPrevents runaway requests from consuming server resources indefinitely
Best Practice: Use <cfsetting requestTimeout="value"> to override timeout for specific pages that require longer execution (e.g., reports, batch operations).

Use UUID for cftoken

PurposeGenerate UUIDs instead of random numbers for CFTOKEN values
DefaultEnabled (recommended)
RecommendationAlways enable for better security
ImpactMakes session hijacking more difficult by using cryptographically secure UUIDs
Security: Disabling this setting makes CFTOKEN values predictable and increases risk of session hijacking attacks.

Enable Per App Settings

PurposeLets developers programmatically define ColdFusion settings such as mappings and debugging per application
DefaultEnabled
RecommendationEnable for flexibility in multi-application servers
ImpactApplications can set their own values, such as mappings, in Application.cfc
Use Case: Essential for hosting multiple applications with different configuration requirements on the same ColdFusion instance.
Default: Verified in the ColdFusion 2025 Update 14 configuration (neo-runtime.xml, key isPerAppSettingsEnabled) shipped in Adobe's official Docker image.

Application.cfc/Application.cfm Lookup Order

PurposeControls where ColdFusion searches for Application.cfc or Application.cfm
OptionsDefault order: current directory, then parent directories up to the system root
Until webroot: current directory, then parent directories up to the webroot
In webroot: current directory, then the webroot
Note: There is no setting to disable Application.cfc or Application.cfm processing. This option only changes the search path.

Missing Template Handler

Configure how ColdFusion handles missing templates and errors.

Missing Template Handler Path

PurposeSpecify a template to execute when a requested .cfm file is not found
DefaultEmpty (shows default 404 error)
RecommendationSet to a custom 404 handler for better user experience
Example/errors/404.cfm
Best Practices:
  • Log 404 errors for analysis (detect broken links, security probes)
  • Provide search functionality to help users find content
  • Suggest similar or related pages
  • Include navigation to main sections
  • Set proper 404 HTTP status code: <cfheader statuscode="404">

Example Missing Template Handler

Basic 404.cfm showing core functionality:

404.cfm - Missing Template Handler
<!--- /errors/404.cfm --->
<cfscript>
  // Set 404 HTTP status code
  cfheader(statuscode="404", statustext="Not Found");

  // Log the 404 error
  writeLog(
    file="404-errors",
    type="warning",
    text="404: #cgi.script_name# from #cgi.http_referer#"
  );
</cfscript>

<!DOCTYPE html>
<html>
<head>
  <title>Page Not Found</title>
</head>
<body>
  <h1>404 - Page Not Found</h1>
  <p>The requested page could not be found.</p>
  <p><a href="/">Return to Homepage</a></p>
</body>
</html>
<!--- /errors/404.cfm --->
<cfheader statuscode="404" statustext="Not Found">

<cflog
  file="404-errors"
  type="warning"
  text="404: #cgi.script_name# from #cgi.http_referer#">

<!DOCTYPE html>
<html>
<head>
  <title>Page Not Found</title>
</head>
<body>
  <h1>404 - Page Not Found</h1>
  <p>The requested page could not be found.</p>
  <p><a href="/">Return to Homepage</a></p>
</body>
</html>
Best Practices:
  • HTTP Status: Always set 404 status code for proper SEO
  • Logging: Log 404 errors to identify broken links
  • User-Friendly: Provide clear message and link back to homepage
  • SEO: Review 404 logs regularly to fix broken links

Site-wide Error Handler Path

PurposeGlobal error handling template for unhandled exceptions
DefaultEmpty
RecommendationAlways configure for production environments
Example/errors/error.cfm
Security Critical: Never expose stack traces or error details to end users in production. Log errors securely server-side and display user-friendly messages only.
Error Handler Best Practices:
  • Log complete error details (message, stack trace, request variables) server-side
  • Display generic, user-friendly error message
  • Send email notifications for critical errors
  • Include request ID for support troubleshooting
  • Set proper 500 HTTP status code
  • Avoid complex logic in error handler (keep it simple to prevent recursive errors)

Example Error Handler Template

Basic error.cfm showing core functionality:

error.cfm - Error Handler
<!--- /errors/error.cfm --->
<cfscript>
  // Generate tracking ID
  errorID = createUUID();
  
  // Set 500 HTTP status code
  cfheader(statuscode="500", statustext="Internal Server Error");
  
  // Log the error
  writeLog(
    file="application-errors",
    type="error",
    text="Error ID: #errorID# | #error.message# | Template: #cgi.script_name#"
  );
</cfscript>

<!DOCTYPE html>
<html>
<head>
  <title>System Error</title>
</head>
<body>
  <h1>System Error</h1>
  <p>An error occurred while processing your request.</p>
  <p>Error ID: <cfoutput>#errorID#</cfoutput></p>
  <p><a href="/">Return to Homepage</a></p>
</body>
</html>
<!--- /errors/error.cfm --->
<cfset errorID = createUUID()>

<cfheader statuscode="500" statustext="Internal Server Error">

<cflog
  file="application-errors"
  type="error"
  text="Error ID: #errorID# | #error.message# | Template: #cgi.script_name#">

<!DOCTYPE html>
<html>
<head>
  <title>System Error</title>
</head>
<body>
  <h1>System Error</h1>
  <p>An error occurred while processing your request.</p>
  <p>Error ID: <cfoutput>#errorID#</cfoutput></p>
  <p><a href="/">Return to Homepage</a></p>
</body>
</html>
Best Practices:
  • Security: Never display stack traces or error details to end users
  • Tracking: Use unique error IDs to help support troubleshoot issues
  • Logging: Log errors to dedicated files for analysis
  • HTTP Status: Always set 500 status code for server errors
  • User-Friendly: Display simple, helpful messages with next steps

Request Queue Settings

Control request size limits and throttling behavior.

Maximum Size of Post Data

PurposeLimit the size of POST request bodies
Default20 MB
RecommendationSet based on your file upload requirements (typically 10-50 MB)
SecurityLower values prevent denial-of-service attacks via large POST requests
Considerations:
  • Must be larger than your largest expected file upload
  • Balance between functionality and security
  • For large file uploads, consider alternative approaches (chunked uploads, S3 direct upload)
  • Monitor for large POST attempts in logs

Request Throttle Threshold

PurposeRequest size (MB) above which requests are throttled; smaller requests are not throttled
Default4 MB
Recommendation1 MB; raise it only if your application needs many concurrent large uploads (Source: ColdFusion 2025 Lockdown Guide)
ImpactLarge requests share a limited memory pool, so many simultaneous large uploads cannot exhaust the heap

Request Throttle Memory

PurposeTotal memory (MB) available to throttled requests at one time
Default200 MB
RecommendationTune it, aiming for 10% of the maximum heap size as an upper limit (Source: ColdFusion 2025 Lockdown Guide)
ImpactWhen throttled requests use up this memory, further large requests wait until memory frees up
Throttle defaults: Verified in the ColdFusion 2025 Update 14 configuration (neo-runtime.xml, keys throttle-threshold and total-throttle-memory) shipped in Adobe's official Docker image.

Request Limits

Concurrent request limits are configured on Server Settings > Request Tuning, not on this page. They are summarized here for reference. In Standard Edition, only the CFM page request limit is adjustable.

Simultaneous Template Requests

Default
25
Recommendation
2-4x CPU cores, test under load

Number of CFML page requests processed concurrently. Requests beyond the limit are queued.

Web Service Requests

Default
5
Recommendation
Based on SOAP usage patterns

SOAP web service invocations are often slower than regular requests.

CFC Function Requests

Default
15
Recommendation
Based on API usage, lower for security

CFC methods requested over HTTP. Does not affect CFC calls made from CFML.

Report Threads

Default
8
Recommendation
Keep low (3-5), use async generation

Maximum number of ColdFusion reports processed concurrently. Reports are resource-intensive.

Defaults: Verified in the ColdFusion 2025 Update 14 configuration (neo-runtime.xml, keys requestLimit, webserviceLimit, CFCLimit, and numSimultaneousReports) shipped in Adobe's official Docker image. The file holds a single value for each limit, not separate values per edition.

Other Security-Relevant Settings

Also on this page:
  • Enable Global Script Protection
  • Blocked file extensions for CFFile uploads
  • Allowed file extensions for CFInclude
  • Maximum number of POST request parameters (Source: ColdFusion 2025 Lockdown Guide)
  • Disable creation of unnamed applications
  • Disable access to internal ColdFusion Java components

There is no default template encoding setting here. ColdFusion identifies a page's encoding from its byte order mark, if any, otherwise from the system default encoding. You can declare it per page with<cfprocessingdirective pageEncoding>; a value that conflicts with the byte order mark causes an error.

Common Issues & Solutions

Request Timeout Errors

Symptom: Requests timing out before completion, users see timeout errors
Solutions:
  • Increase global timeout setting (temporary fix)
  • Use <cfsetting requestTimeout> for specific long-running pages
  • Optimize slow database queries (use query analyzer)
  • Profile code to identify performance bottlenecks
  • Consider asynchronous processing for long operations

Request Queue Full

Symptom: Users seeing "Request Rejected" or "Request Timeout" errors during peak traffic
Solutions:
  • Increase concurrent request limit (if resources available)
  • Add more servers and load balance
  • Optimize slow requests (often root cause)
  • Implement caching to reduce database load
  • Lower Request Throttle Threshold or Request Throttle Memory so large requests queue instead of competing for heap

Out of Memory Errors

Symptom: Server crashes, java.lang.OutOfMemoryError, request failures under load
Solutions:
  • Review Request Throttle Memory and Maximum Size of Post Data so large uploads cannot exhaust the heap
  • Increase JVM heap size if physical RAM available
  • Reduce concurrent request limits to match available memory
  • Fix memory leaks in application code
  • Monitor memory usage and set alerts

Related Resources

Server Settings - Settings | ColdFusion Administrator | CFGuide