Site "Application.cfc" File - Mura Docs v7.0

Site "Application.cfc" File

In addition to the root Application.cfc (located under {context}/Application.cfc), each site has its own Application.cfc file, located under {context}/sites/{SiteID}/includes/Appication.cfc. As a CFML developer, you should already know the Application.cfc file defines application-wide settings and variables, and application event handlers.

One of the primary features of the Site Application.cfc is to prevent users from navigating directly to your CFML files via the browser. However, as a Mura developer, you may need to allow direct access to a ".cfm" or ".cfc" file for some reason. In the event you need to do this, you can simply add the filename(s) to the list of allowed files, as highlighted in the image below.

In addition, you could include some custom logic, if desired, as this file will not be overwritten when using the auto-update feature of Mura.