Done right, there's usually no need for any cfif statement. All you need is something like this in the app_server.cfm file:
<!--- Example: www.houseoffusion.com ---> <cfset request.Domain = CGI.Server_Name> <!--- Example: http://www.houseoffusion.com/cf_lists/ ---> <cfset request.webroot = "http://#request.Domain#/cf_lists/"> <!--- Example: http://www.houseoffusion.com/cf_lists/images/ ---> <cfset request.imagesdomain = "#request.webroot#images/"> <!--- Example: C:\houseoffusion\cf_lists\ ---> <cfset request.fileroot = GetDirectoryFromPath(GetCurrentTemplatePath())> > On top of doing the include file in your Application.cfm, in Rebecca's > example you can use the CGI.SERVER_NAME variable and use a CFIF > statement to set the variables for each server. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:205406 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

