User Guide

272 Administering ColdFusion Server
Application page references
The reference to the file myquery.cfm in the above example contains no path
information. You may be wondering how ColdFusion determines where on your
system to locate this file.
If you place ColdFusion application pages in the
cfdocs directory, you can reference
them using only their base name. For example, if a file called
myquery.cfm is in the
cfdocs directory, you need only specify myquery.cfm to refer to it.
If you create subdirectories within the
cfdocs directory, you can reference application
pages within them using their subdirectory names. For example, if you put
myquery.cfm in a subdirectory called sales, you would use /sales/myquery.cfm to
refer to it. The URL reference to this file would then be:
/cgi-shl/cfml.exe?template=/sales/myquery.cfm
To simplify URLs for your users, you can create mappings that point to directories.
These mappings work like your Web server’s document mappings, but they only refer
to application pages. Define mappings on the Mappings page of the ColdFusion
Administrator.