Cold Fusion Server will look for Application.cfm in the directory that the
template was called from and continue up the directory tree until it hits
the root.  This is an example using NT and IIS.  

So, If you call your application from 
d:\inetpub\root\www\cgi-bin\, it will look here first then 
d:\inetpub\root\www\, then
d:\inetpub\root\, then
d:\inetpub\, then
d:\ stops here at the root of the drive.

remember it's based on the physical path to the folder, not the mapped path
in the webserver.

HTH

Jeff Garza
Web Developer/Webmaster
Spectrum Astro, Inc.
480.892.8200

[EMAIL PROTECTED]
http://www.spectrumastro.com



-----Original Message-----
From: river [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 9:17 AM
To: CF-Talk
Subject: application.cfm question


How does CF server look for application.cfm?  For example, let's say there
is a directory structure like this:

/root/
/root/www/
/root/www/cgi-bin/

Now, let's say there are multiple application.cfm files, one in each
directory.

/root/application.cfm
/root/www/application.cfm
/root/www/cgi-bin/application.cfm

When CF server executes a template in /root/www/cgi-bin/ directory, does it
just look at the application.cfm file in the directory?  Or does it go up to
www and root to look at the application.cfm files in there as well?  How
does it exactly work?

Thanks for help in advance.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to