For convenience as you work through the book, you might want to create virtual sites or mappings for the following folders: OldSite NewSite Examples This will enable you to use URLs, such as http://localhost/NewSite, without actually having to move the folder into the wwwroot directory. To Create a Virtual Directory for IIS -
Open your Internet Services Manager tool. -
Right-click the Default Web Site and choose New, Virtual Directory. -
Enter an alias, such as NewSite, and click Next. -
Browse to the directory C:\CFMX10Steps\NewSite. -
Click Next and Finish. To Create a Virtual Site in Standalone Configuration -
With a text editor, open C:\CFusionMX\wwwroot\WEB-INF\jrun-web.xml. -
Scroll to the bottom of the file. -
Copy the format of the existing virtual mapping to create new mappings that point to your directories, as follows: <virtual-mapping> <resource-path>/NewSite/*</resource-path> <system-path>C:\CFMX10Steps\NewSite</system-path> </virtual-mapping> This means that any requests for http://localhost/NewSite/whatever will be redirected to our C:\CFMX10Steps\NewSite folder. -
Save and close the file. Create virtual site/mappings for all three folders previously mentioned. To create virtual mappings for other web servers, see your web server documentation. For any installation problems, please go to www.macromedia.com/support/ coldfusion/installation.html or the www.LearnColdFusionMX.com web site. |