to Run Under ColdFusion Up to this point, we've been working primarily from C:\Dorknozzle\<chapterfolder>. From now on, we'll work from C:\Inetpub\wwwroot\DorknozzleCFM (assuming that you're using ColdFusion). Because this is the case, we need to reconfigure the site definition to point to the new folder we've created. Furthermore, we need to configure the Testing Server category in the Site Definition window to provide Dreamweaver with information specific to the technology you plan on using for the defined site. To configure Dorknozzle to run under ColdFusion, follow these steps: 1. If you haven't downloaded the files for this chapter, do so now. Open the folder for Chapter 22, copy the contents out of the folder, and paste them into the newly created DorknozzleCFM folder in C:\Inetpub\wwwroot. Now you have all the assets, images, library items, and an index.cfm page you need to get started. After you've copied the files over, you should have Assets, Images, and Library folders including a CSS file, index.cfm page, and the sample.cfm page you've been working with to this point. 2. Open Dreamweaver if you haven't already done so and choose the Manage Sites option from the Site menu. 3. Select the existing Dorknozzle site from the list and click Edit. The Site Definition for Dorknozzle dialog appears. 4. In the Site Name text box, rename the site from Dorknozzle to DorknozzleCFM. 5. Now browse to the C:\Inetpub\wwwroot\DorknozzleCFM\ folder in the Local Root folder category. Leave everything else as is. 6. Now switch to the Testing Server category. 7. Select the ColdFusion option from the Server model category. 8. Choose the Local/Network option from the Access menu. New properties become available that allow you to configure the location of the remote folder as well as the URL prefix for the remote folder. NOTE Other options are available in the Access menu for defining remote access to the testing server. Similar to what happens when you select the Remote Info category, when you select FTP and WebDAV, you're presented with options for configuring the Host, Host directory, Login, Password, and so on. An additional option that appears in the Access menu is RDS. Remote Development Services (RDS) lets you access a remote ColdFusion MX server using HTTP. Using RDS, Dreamweaver users can securely access remote files and data sources, build SQL queries from these data sources, and debug CFML code. 9. Browse to the same C:\Inetpub\wwwroot\DorknozzleCFM\ path in the Remote Folder text box. In most cases, this value is pre-populated when you select the Local/Network option from the Access menu. NOTE When working with web applications, the ideal scenario is that you'll have a development machine, a production machine (server), and a testing server. Realistically, not everyone can afford another server just for testing purposes. Most of us will rely on the development machine to function as a testing server as well. For this reason, we'll simply define our testing server as the local development machine. If you do have a dedicated testing server, you'd probably use the RDS option instead. 10. Enter the URL to our Dorknozzle site. This value should read http://localhost/dorknozzlecfm/. Remember that localhost, like every other domain name (such as yahoo.com and google.com) is a URL accessible from a browser. Rather than accessing the site from a server miles away, the browser knows that localhost (and the IP address 127.0.0.1 associated with it) is the URL for the local instance of IIS (your computer). Because this is the case, it doesn't have to look too far for your files. 11. Click OK to close the Site Definition for DorknozzleCFM window.