272
Administering ColdFusion Server
Application page references
The reference to the file
in the above example contains no path
myquery.cfm
information. You may be wondering how ColdFusion determines where on your
system to locate this file.
If you place ColdFusion application pages in the
directory, you can reference
cfdocs
them using only their base name. For example, if a file called
is in the
myquery.cfm
directory, you need only specify
to refer to it.
cfdocs
myquery.cfm
If you create subdirectories within the
directory, you can reference application
cfdocs
pages within them using their subdirectory names. For example, if you put
in a subdirectory called
, you would use
to
myquery.cfm
sales
/sales/myquery.cfm
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.
Need help?
Do you have a question about the COLDFUSION 4.5-ADMINISTRING COLDFUSION SERVER and is the answer not in the manual?