tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Jung <rainer.j...@kippdata.de>
Subject Re: MOD_JK Redirection issues
Date Wed, 03 Jan 2007 08:11:30 GMT
OK, from the config I would guess, that you actually forward the request 
to tomcat, but get the 404 from there. What does the debug log tell you 
about the request in question?

Small hint not related to your problem: delete the cachesize lines if 
you've got no special reason for them.

Jagadeesh wrote:
> Thanks for the reply Rainer.
> 
> I am using tomcat-connectors-1.2.19 and jBoss 4.0.5GA in Fedora Core 5.
> Since the binary I downloaded was throwing errors, I build the shared
> library mod_jk.so from the source and copied it to the
> /usr/lib/httpd/modules/ directory.
> 
> Please find below the configuration file (mod-jk.conf) I am using
> 
> #=========================================================================
> 
> #Loads the module
> LoadModule jk_module modules/mod_jk.so
> 
> # The workers file
> JkWorkersFile conf/worker.properties
> 
> # Set the jk log level [debug/error/info]
> JkLogLevel debug
> 
> # Select the log format
> JkLogStampFormat  "[%a %b %d %H:%M:%S %Y]"
> 
> # JkOptions indicates to send SSK KEY SIZE
> JkOptions +ForwardKeySize +ForwardURIEscaped -ForwardDirectories
> 
> # JkRequestLogFormat
> JkRequestLogFormat "%w %V %T"
> 
> # Mount your applications
> JkMount /* loadbalancer
> 
> # You can use external file for mount points.
> # It will be checked for updates each 60 seconds.
> # The format of the file is: /url=worker
> # /examples/*=loadbalancer
> # JkMountFile conf/uriworkermap.properties
> 
> # Add shared memory.
> # This directive is present with 1.2.10 and
> # later versions of mod_jk, and is needed for
> # for load balancing to work properly
> JkShmFile logs/jk.shm
> 
> # Add jkstatus for managing runtime data
> <Location /jkstatus/>
>     JkMount status
>     Order deny,allow
>     Deny from all
>     Allow from 192.168.0.2
> </Location>
> 
> #=========================================================================
> 
> 
> Please find below worker.properties.
> 
> 
> #=========================================================================
> 
> # Define list of workers that will be used
> # for mapping requests
> worker.list=loadbalancer,status
> 
> # Define Node1
> # modify the host as your host IP or DNS name.
> worker.node1.port=8009
> worker.node1.host=xxx.xxx.xxx.xxx
> worker.node1.type=ajp13
> worker.node1.lbfactor=1
> worker.node1.cachesize=10
> 
> # Define Node2
> # modify the host as your host IP or DNS name.
> worker.node2.port=8009
> worker.node2.host= xxx.xxx.xxx.xxx 
> worker.node2.type=ajp13
> worker.node2.lbfactor=1
> worker.node2.cachesize=10
> 
> # Load-balancing behaviour
> worker.loadbalancer.type=lb
> worker.loadbalancer.balance_workers=node1,node2
> worker.loadbalancer.sticky_session=1
> worker.list=loadbalancer
> 
> # Status worker for managing load balancer
> worker.status.type=status
> 
> #=====================================================================
> 
> I am not using uriworkermap.properties.
> 
> Thanks
> Jagadeesh
> 
> -----Original Message-----
> From: Rainer Jung [mailto:rainer.jung@kippdata.de] 
> Sent: Wednesday, January 03, 2007 12:51 PM
> To: Tomcat Users List
> Subject: Re: MOD_JK Redirection issues
> 
> Please give detailed information on the version and type of web server 
> and mod_jk you are using and include mod_jk config and the relevant 
> parts of the web server config.
> 
> You can increase the log level of mod_jk to debug or even trace to 
> follow, how mod_jk tries to match your requests against the configured 
> URL maps.
> 
> Regards,
> 
> Rainer
> 
> Jagadeesh wrote:
>> Hi All,
>>
>>  
>>
>> Happy New Year!!!
>>
>>  
>>
>> I am having a few problems when using MOD JK with jBoss application
> server.
>>  
>>
>> I am hosting an application in jBoss which uses REST protocol to serve the
>> contents. So the GET requests that reach MOD JK can be an encoded string
>> like
> http://loadbalancer.xxx.com/authenticate/user%2fjagadeesh?key=123456789
>>
>>  
>>
>> Here the actual request is 
>>
>>  
>>
>> http://loadbalancer.xxx.com/authenticate/user/jagadeesh?key=123456789
> where
>> %2f is the encoded string for '/'. Whenever MOD JK gets a request like
> this,
>> it seems to be ignoring it rather than passing it to the application
> server
>> and I am getting HTTP 404.
>>
>>  
>>
>> I tried accessing the server directly with the request
>>
>>  
>>
>> http://node1.xxx.com/authenticate/user%2fjagadeesh?key=123456789 and it's
>> working fine.
>>
>>  
>>
>> Any help to resolve this is greatly appreciated.
>>
>>  
>>
>> Thanks
>>
>> Jagadeesh
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 
> 
> 
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message