Enterprise Computing
Thursday, June 02, 2005
  WebLogic Apache Virtual Server
Just use virtual servers– you’ll need 3 configs on 3 ports (one http.conf). Then just use the cluster tags in each as usual. See the eg below. There are two virtual hosts here, one on 80, one on 3700. Just replace host/port tages with the cluster equivs and there u go.

 

The server list basically says what servers as up and down in the cluster (updated on each request) – if you point this to more than one cluster you can see that you might get proxied to a server that you shouldn’t (unless u make the wls urls unique for each cluster).

 

<VirtualHost 192.168.5.42:80 >

     ServerName 192.168.5.42

     ErrorLog /opt/logs/apache/lsp/error_log

     CustomLog /opt/logs/apache/lsp/access_log common

 

     <Location /LSPPortalWeb>

           SetHandler weblogic-handler

     </Location>

 

     <Location /cafe-webapp>

           SetHandler weblogic-handler

     </Location>

 

     <Location /console>

           SetHandler weblogic-handler

     </Location>

 

 

      <Location /NHSLspAdmin>

            SetHandler weblogic-handler

      </Location>

 

     <IfModule mod_weblogic.c>

          WebLogicHost 192.168.6.66

          WebLogicPort 1201

     </IfModule>

</VirtualHost>

 

<VirtualHost 192.168.30.77:80 >

     ServerName 192.168.30.77

     ErrorLog /opt/logs/apache/adent/error_log

     CustomLog /opt/logs/apache/adent/access_log common

 

     <Location /Ardentia>

           SetHandler weblogic-handler

     </Location>

 

     <IfModule mod_weblogic.c>

          WebLogicHost 192.168.6.155

          WebLogicPort 1201

     </IfModule>

</VirtualHost>

 

 

 

<VirtualHost *:3700 >

# try changing this to <VirtualHost 155.231.138.200:3700>

     ServerName 192.168.5.42

     ErrorLog /opt/logs/apache/lsp/NCRSerror_log

     CustomLog /opt/logs/apache/lsp/NCRSaccess_log common

 

      <Location /NCRSNotification-web>

                SetHandler weblogic-handler

        </Location>

 

     <IfModule mod_weblogic.c>

          WebLogicHost 192.168.6.66

          WebLogicPort 1201

     </IfModule>

</VirtualHost>

 

 




<< Home
Alistair Thomas's 'everything to do with enterprise computing'.

Archives
03/01/2004 - 04/01/2004 / 04/01/2004 - 05/01/2004 / 05/01/2004 - 06/01/2004 / 08/01/2004 - 09/01/2004 / 03/01/2005 - 04/01/2005 / 04/01/2005 - 05/01/2005 / 06/01/2005 - 07/01/2005 / 08/01/2005 - 09/01/2005 / 09/01/2005 - 10/01/2005 / 11/01/2005 - 12/01/2005 / 02/01/2010 - 03/01/2010 / 06/01/2013 - 07/01/2013 /


Powered by Blogger

Subscribe to
Posts [Atom]