[jboss-user] [Beginners Corner] - Re: JBoss and Apache virtual host config- mod_jk

deenuy do-not-reply at jboss.com
Thu Oct 16 11:41:03 EDT 2008


sorry for again n again posting. Hope this time its pretty clear about my configuration.

Here is part of the Apache config:
Config of httpd.conf:
#Include mod_jk configuration file
  | Include conf/mod-jk.conf

Config of Mod-jk.conf:
LoadModule jk_module modules/mod_jk.so
  | 
  | #Where to find workers.properties
  | #Where to put jk shared memory
  | #Where to put jk logs
  | #Set the jk log level [debug/error/info]
  | #Select the timestamp log format
  | #JkOptions indicates to send SSK KEY SIZE
  | 
  | JkWorkersFile conf/workers.properties
  | JkShmFile        "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.shm"
  | JkLogFile          "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.log"
  | JkLogLevel        debug
  | 
  | JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
  | JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
  | 
  | <VirtualHost *:80>
  |     ServerName 		www.tc.emerson.com
  |     ServerAdmin 	Deenanath.Yadav at emerson.com    
  |     LogLevel warn
  |     CustomLog 		logs/ tc.emerson.com.access.log combined
  |     ErrorLog 		logs/ tc.emerson.com.error.log
  |     ServerSignature Off
  | 	
  |     JkAutoAlias		/tc/webclient
  |     JkMountFile  		conf/uriworkermap.properties


Config of workers.properties:
# Define list of workers that will be used
  | # for mapping requests
  | # The configuration directives are valid
  | # for the mod_jk version 1.2.18 and later
  | #
  | 
  | worker.list=worker1
  | worker.worker1.type=ajp13
  | worker.worker1.host= localhost
  | worker.worker1.port=8009
  | worker.worker1.lbfactor=1

Config of uriworkermap.properties:
/tc/webclient/*=worker1 
  | /tc/webclient=worker1 
  | /*=worker1

Here is part of the Jboss config:
JBoss Configuration:

Config of Server.xml:
<Engine name="jboss.web" defaultHost="localhost" jvmroute="worker1">
  | <Logger className="org.jboss.web.tomcat.Log4jLogger"
  |             verbosityLevel="WARNING"
  |             category="org.jboss.web.localhost.Engine"/>
  | 
  |          <Host name="localhost"
  |             autoDeploy="false" deployOnStartup="false" deployXML="false">
  | 			<Alias>www.tc.emerson.com</Alias>
  | 			<Alias>tc.emerson.com</Alias>
  | <Valve className="org.apache.catalina.valves.AccessLogValve"
  |                 prefix=" tc.emerson.com _log." suffix=".log"
  |                 pattern="common" directory="${jboss.server.home.dir}/log"/>

Config of jboss-web.xml:
<jboss-web>
  |     <context-root>/</context-root>
  |     <virtual-host>www.tc.emerson.com</virtual-host>   
  | </jboss-web>



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182707#4182707

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182707



More information about the jboss-user mailing list