ColdFusionJournal.com
33
SEPTEMBER 2003 CFDJ
the BlueDragon Administrator. In those cases, BlueDragon uses
a programmatic API to set the extension mapping and the path
to its DLL, where the spaces don’t matter.
If you’ve already installed BlueDragon and want to try this
manual approach to setting up a new virtual directory, and
you don’t want to reinstall BlueDragon, you can still point to
your existing directory here. You’ll just have to convert the
path to the Windows 8.3 format. On our test machine, that
path name would be C:\Progra~1\NewAtl~1\BlueDr~1\
bin\isapi\BlueDragon_Adapter.dll. This will vary on your
machine depending on other directories you may have in the
Program Files or New Atlanta directories. If you’re comfortable
using the DOS command line, you can determine the 8.3
name for a given path using the DIR command’s /X switch.
Finally, note that unlike CFMX, we did not need to install
the IIS adapter in order to use that BlueDragon_Adapter.dll. As
in CF5, it’s simply placed there automatically during the install
process along with all the other external Web server adapters.
Conclusion
Now you can browse code in your webroot and serve it via
all three application servers just by changing the virtual direc-
tory in your URL.
• Localhost/cf5 will send code to the ColdFusion 5 server.
• localhost/cfmx will send code to the ColdFusion MX server.
• localhost/bd will send code to the BlueDragon server.
And notice that while we’ve created the virtual directories
to point to the IIS webroot, you could just as easily create
three sets of virtual directories to point to another content
directory outside the webroot.
Maybe someone out there would like to take this concept and
extend it to offer similar instructions for doing this in Apache,
iPlanet, or IIS 6 on Windows Server 2003. Again, the concepts are
similar, and sometimes even easier on those Web servers.
In any case, for those on IIS, jumping between projects,
clients, and application servers just became much easier.
About the Authors
Jeffry Houser has been working with computers for over 20
years and has been working in Web development for over 8
years.He owns a consulting company based in Connecticut,
and has authored three separate books on ColdFusion,most
recently ColdFusion MX: The Complete Reference (McGraw-
Hill Osborne Media).
Charlie Arehart is co-technical editor of ColdFusion
Developer’s Journal and a Macromedia Certified Advanced
ColdFusion developer and trainer.He has recently become CTO
of New Atlanta Communications,makers of BlueDragon.In his
new role,he will continue to support the CFML community,
contributing to several CF resources, and speaking frequently at
user groups throughout the country.
CRYSTALTECH
www.crystaltech.com
Commenti su questo manuale