Professional Web Applications Themes

multiple instances single VirtualHost - Coldfusion Server Administration

Usually we have one JRun (ColdFusion 6.1) instance per VirtualHost in apache (2.0.46). This all works fine. A situation has now come up where we want to have different parts of a single site connected to different JRun instances. Do you know if this is possible and how to go about setting it up? Cheers, David ------------------------------------------------- p.s. What we have in mind is: <VirtualHost x.x.x.x> ServerName localhost DoentRoot /var/www/html <Directory /var/www/html/foo> JRunConfig Serverstore /usr/lib/httpd/modules/wsconfig/1/jrunserver.store JRunConfig Bootstrap X.X.X.X:51000 </Directory> <Directory /var/www/html/bar> JRunConfig Serverstore /usr/lib/httpd/modules/wsconfig/2/jrunserver.store JRunConfig Bootstrap X.X.X.X:51001 </Directory> </VirtualHost> But it doesn't seem to work. Only the last loaded JRun ...

  1. #1

    Default multiple instances single VirtualHost

    Usually we have one JRun (ColdFusion 6.1) instance
    per VirtualHost in apache (2.0.46). This all works fine.

    A situation has now come up where we want to have
    different parts of a single site connected to
    different JRun instances. Do you know if this is
    possible and how to go about setting it up?

    Cheers, David




    -------------------------------------------------
    p.s. What we have in mind is:
    <VirtualHost x.x.x.x>
    ServerName localhost
    DoentRoot /var/www/html

    <Directory /var/www/html/foo>
    JRunConfig Serverstore
    /usr/lib/httpd/modules/wsconfig/1/jrunserver.store
    JRunConfig Bootstrap X.X.X.X:51000
    </Directory>

    <Directory /var/www/html/bar>
    JRunConfig Serverstore
    /usr/lib/httpd/modules/wsconfig/2/jrunserver.store
    JRunConfig Bootstrap X.X.X.X:51001
    </Directory>
    </VirtualHost>


    But it doesn't seem to work.
    Only the last loaded JRun config will work so when
    browsing to [url]http://localhost/foo[/url] it will connect to CF
    instance 2.
    -------------------------------------------------

    However this works OK.
    <VirtualHost x.x.x.x>
    ServerName server1.localhost
    DoentRoot /var/www/html
    JRunConfig Serverstore
    /usr/lib/httpd/modules/wsconfig/1/jrunserver.store
    JRunConfig Bootstrap X.X.X.X:51000
    </VirtualHost>


    <VirtualHost x.x.x.x>
    ServerName server2.localhost
    DoentRoot /var/www/html
    JRunConfig Serverstore
    /usr/lib/httpd/modules/wsconfig/2/jrunserver.store
    JRunConfig Bootstrap X.X.X.X:51001
    </VirtualHost>

    dlutzy Guest

  2. #2

    Default Re: multiple instances single VirtualHost

    David,

    ColdFusion/JRun is doented to be configurable for multiple virtual hosts as
    you've shown, but not on a per directory container as you've shown doesn't
    work. I've not tried it myself, but I would suspect you're experience is
    accurate.

    You might want to configure multiple virtual hosts each with a different JRun
    instance, then use mod_proxy to match URL patterns (such as the /directory
    name) and then Apache will forward to another web address such as the virtual
    host. Its a bit of hoop jumping, but would probably work.


    serat Guest

  3. #3

    Default Re: multiple instances single VirtualHost

    Thanks Steven,

    We're trying the mod_proxy method now and having some success.

    What I'm not sure about is whether it is better to proxy the CF internal
    webserver ("WebService" port 8300 for example) or proxy to apache which then
    connects to JRun ("ProxyService" port 51020 for example).

    Which one do you think will work better?

    Cheers, David

    dlutzy Guest

Similar Threads

  1. Multiple CF7 Instances On Single IIS Website
    By ktodd in forum Coldfusion Server Administration
    Replies: 0
    Last Post: February 8th, 09:22 PM
  2. Single instance or multiple instances
    By jamezw in forum Macromedia Flash Flashcom
    Replies: 0
    Last Post: February 16th, 07:16 PM
  3. Replies: 1
    Last Post: July 30th, 02:31 PM
  4. Replies: 1
    Last Post: April 16th, 08:44 PM
  5. Draging multiple instances of multiple objects
    By equinox007 webforumsuser@macromedia.com in forum Macromedia Flash Actionscript
    Replies: 2
    Last Post: January 23rd, 01:31 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139