Skip to main content
Known Participant
June 13, 2008
Question

Two instances in a cluster with the same docroot

  • June 13, 2008
  • 2 replies
  • 368 views
I'm setting up a cluster with two instances running on the same machine under IIS 6. I've followed the official documentation for doing so, and it seems to be running fine. However, each instance has its own document root, under c:\jrun4\servers\... etc. However, the IIS site I have the cluster connected to has its own document root, which I assumed would be used once I connected the cluster to IIS and accessed the website at the default port.

When I access pages on the IIS site, IIS is indeed serving them up, but then it seems to pass control onto each instance, using the page in the instance's docroot, if it exists. When I created an EAR archive, the only page I had in the docroot was index.cfm. If I add other pages to IIS's docroot, they show up fine, but the instance's pages always take precedence, even if I attempt to delete them (at which point the server returns a 404, though the page still exists in IIS's docroot).

Any ideas? I'm going to try using an empty docroot to create the initial EAR from, but I wonder if this is a symptom of incorrectly setting up the instances.
    This topic has been closed for replies.

    2 replies

    Known Participant
    June 13, 2008
    I think I did that the hard way by using an empty docroot to create the archive from.

    However, what about custom 404 and error pages? When I specify them in Settings on each instance's Administrator page, they're not found. I can copy them into the instance's docroot, but won't this mean I'll have to change both instance's copies if I have any changes for these two templates?
    Inspiring
    June 13, 2008
    steeef12345678 wrote:
    > I'm setting up a cluster with two instances running on the same machine under
    > IIS 6. I've followed the official documentation for doing so, and it seems to
    > be running fine. However, each instance has its own document root, under
    > c:\jrun4\servers\... etc. However, the IIS site I have the cluster connected to
    > has its own document root, which I assumed would be used once I connected the
    > cluster to IIS and accessed the website at the default port.
    >
    > When I access pages on the IIS site, IIS is indeed serving them up, but then
    > it seems to pass control onto each instance, using the page in the instance's
    > docroot, if it exists. When I created an EAR archive, the only page I had in
    > the docroot was index.cfm. If I add other pages to IIS's docroot, they show up
    > fine, but the instance's pages always take precedence, even if I attempt to
    > delete them (at which point the server returns a 404, though the page still
    > exists in IIS's docroot).

    Delete index.cfm from the JRun webroot and restart the instance.

    Jochem


    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion