Creating Virtual Sites

Team-Fly    

ColdFusion® MX: From Static to Dynamic in 10 Steps
By Barry Moore
Table of Contents
System Setup


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

  1. Open your Internet Services Manager tool.

  2. Right-click the Default Web Site and choose New, Virtual Directory.

  3. Enter an alias, such as NewSite, and click Next.

  4. Browse to the directory C:\CFMX10Steps\NewSite.

  5. Click Next and Finish.

To Create a Virtual Site in Standalone Configuration

  1. With a text editor, open C:\CFusionMX\wwwroot\WEB-INF\jrun-web.xml.

  2. Scroll to the bottom of the file.

  3. 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.

  4. 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.


    Team-Fly    
    Top
     



    ColdFusion MX. From Static to Dynamic in 10 Steps
    ColdFusion MX: From Static to Dynamic in 10 Steps
    ISBN: 0735712964
    EAN: 2147483647
    Year: 2002
    Pages: 140
    Authors: Barry Moore

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net