Skip to main content
jkcrosby
Inspiring
December 2, 2014
Question

Can multiple Virtual Directories be created in CF11?

  • December 2, 2014
  • 2 replies
  • 1810 views

I am testing the standalone version of CF11 using the internal web server. 

Please help me understand some things.  Since we are not using an external webserver like IIS, and we have 4 different websites to configure, in order to not change all the webpage code to point to a different level in order to 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 is defined in the server.xml file 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?

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. 

Thanks in advance!

Jennifer

This topic has been closed for replies.

2 replies

Carl Von Stetten
Legend
December 11, 2014

As long as you don't connect either CF9 or CF11 to IIS (using the WSCONFIG or Web Server Configuration Tool) with the "All Sites" method, you can connect different versions of CF to individual web sites.  If you did previously connect CF9 using "All Sites", you would need to run WSCONFIG, remove the connector to IIS (backup any customizations you may have made to the JRUN connectors, if any) then rerun WSCONFIG and add connections to each individual web site that needs to run under CF9.  Then run the CF11 WSCONFIG and connect only the web sites you need to run under CF11.  Make sure you run the WSCONFIG tool using the "Run as Administrator" option.

-Carl V.

jkcrosby
jkcrosbyAuthor
Inspiring
December 19, 2014

Carl Von Stetten

Is there a sequence when installing/upgrading?  For example,

Step 1.  Keep CF9 services running

Step 2.  Keep CF9 connected to the websites with the wsconfig

Step 3.  Install CF11

Step 4.  Sign in to CF11 Administrator, migrates configurations, and CF11 connects to websites and IIS with wsconfig

Step 5.  Remove CF9 connections

Step 6.  Stop CF9 services

Step 7.  Uninstall CF9 software

I just haven't seen any documentation as to what to do with the previous version at what part of the upgrade installation.

Thanks!

Jennifer


Carl Von Stetten
Legend
December 19, 2014

I thought you were trying to run both CF9 and CF11 simultaneously.  Now you are trying to upgrade and remove CF9 instead?  If so, I'd remove the "and CF11 connects to websites and IIS with wsconfig" from step 4.  Move that to new Step 8.  Otherwise, you'll have both CF9 and CF11 connectors simultaneously, and fighting each other.

-Carl V.

Carl Von Stetten
Legend
December 4, 2014

Adobe is using Tomcat's built-in web server for it's built-in web server.  If you go to the Tomcat docs, you can probably find direction on how to do this.  However, I submit that it is not worth the effort involved.  Since you intent to hook up IIS at some point, you should seriously consider just doing that now instead of "hacking" together a solution that you'll throw away later anyway.

If you are developing on a Windows Vista (shudder) or later OS computer, then the IIS that is built in is almost identical to the one in the comparable Windows Server release and supports multiple websites.  Set up your development IIS structure to match production and you'll save yourself a lot of grief.

-Carl V.

jkcrosby
jkcrosbyAuthor
Inspiring
December 10, 2014

Carl Von Stetten, Unfortunately I am being forced to use the internal Tomcat web server because we don't have any extra server, virtual or otherwise, to play with, either on our end, or our customer's end.  I'm having to do this side-by-side on our development server.  So, I have no choice, but to get this working as it does in IIS, but on the internal Tomcat webserver. I am slowly discovering all the hardcoded cgi.server_name  check issues that now how localhost vs an actual server, and blank cgi.auth_user that is probably supposed to be provided by IIS.  I'll start searching in the Tomcat docs and hope they actually have some content and guidance instead of just vague fluff.  Thanks for your help and pointing me in the right direction.

/r

Jennifer

Carl Von Stetten
Legend
December 10, 2014

jkcrosby,

What is the OS on your "development server"?

-Carl V.