(I'm not getting any feedback from Adobe ColdFusion Install Tech help or Adobe ColdFusion Forum. I'm hoping I'm just not asking correctly and that it is not that no one knows the answer).
We are upgrading from CF9 to CF11, so I've installed CF11 as a standalone with an internal web server. Since we are not using an external webserver like IIS, and we have 4 different websites to configure, in order to not change all (or at least some) the webpage code to point to a different level and so that it can be found, do I have to do this with Virtual Directories [i.e. I have copied all CF9 code (4 different websites) and just added _CF11 to the end of the main website folder names, i.e. website1_CF11 and an aliases have been created for these websites, i.e. aliases=”/alias1=E:\website1_CF11, etc…”]?
Can multiple VD be created? How are they defined? One VD is defined as
<Context
path="/"
docBase="C:\ColdFusion10\cfusion\wwwroot"
WorkDir="C:\ColdFusion10\cfusion\runtime\conf\Catalina\localhost\tmp"
aliases="/VD=C:\newwebroot\VD">
</Context>
How would I create more than one? Is this what I need to do to accomplish my goal of getting my webpages to see the directory structure at the correct level?
I currently have something like the following for my server.xml:
<Context
Path=”/”
docBase=”D:\ColdFusion11/cfusion/wwwroot”
WorkDir=”D:\ColdFusion11/cfusion/runtime/conf/Catalina/localhost/tmp”
Aliases=”/CFIDE=D:\ColdFusion11\cfusion\wwroot\CFIDE,
/WEB-INF=D:\ColdFusion11\cfusion\wwwroot\WEB-INF,
/website1=E:\website1,
/website2=E:\website2,
/website3=E:\website3,
/website4=E:\website4”>
</Context>
I can put
/VD=E:\website1,
into the above code and CF admin works, but I guess I'm a little fuzzy as to what exactly virtual directories are supposed to do. I thought it was essentially an alias for the ip address of a web address, or hostname.
But am I understanding correctly that it just allows a website to point to a different folder location that isn't in the wwwroot path? What I want is for each website I have to be able to point to that root folder for that website. I want the following for each website so the code works properly:
For website1: http://localhost:8500/index.html
For website2: http://localhost:8501/index.html
For website3: http://localhost:8502/index.html
For website4: http://localhost:8503/index.html
Right now aliases are not going to work, because that would be pointless and time consuming changing all the code just so it can find all the web pages so we can test functionality and fix the breaks. For example, I currently need to change the code to the following:
<cf_location url=”#URLSessionFormat(‘/webpage/’)#” addtoken=”false”>
To
<cf_location url=”#URLSessionFormat(‘/alias1/webpage/’)#” addtoken=”false”>
We are eventually going to run the wsconfig executable to connect to IIS so we can fully migrate from CF9 to CF11. What am I missing? I can’t imagine that Adobe would not have the same functionality with their internal web server as one would have with an external web server. We don't have enough resources to put CF9, CF11, and IIS on a separate machine to test out direct migration without the side-by-side installation of CF11.