Re: Tomcat and Apache Deny rules

2007-12-06 Thread fredk2
Hi, Any reasons as to why not set the directives in the httpd.conf instead of .htaccess ? .htaccess only matters to requests for the directory it is in. Fred Aaron Brown-5 wrote: I've been trying to block the litefinder malicious bot which scours our site every day and tries to access

Re: JkRequestLogFormat Options

2008-02-28 Thread fredk2
Hi, btw, in your log format line you have %{JK_REQUEST_DURATON}n instead of %{JK_REQUEST_DURATION}n see the missing I. I am using 1.2.25 and i get times alike 0.0275 when using Apache 2.2 Rgds, Fred Ahmed Musa wrote: Hallo, I am logging the mod_jk Output through the Apache access_log -

Does logging with swallowOutput=true buffer the output ?

2008-02-28 Thread fredk2
Hi, I have a servlet that loops and writes normally to catalina.out with System.out.println(iteration); I can tail -f catalina.out and see the iterations as they happen. The problem is that after configuring the applications logging.properties as shown below and set the application

Can we use output/extras/tomcat-juli.jar by default?

2007-08-17 Thread fredk2
Hi, To use log4j the documentation http://tomcat.apache.org/tomcat-6.0-doc/logging.html suggest that we need to: 1. Replace $CATALINA_HOME/bin/tomcat-juli.jar with the output/extras/tomcat-juli.jar. 2. Place output/extras/tomcat-juli-adapters.jar in $CATALINA_HOME/lib. What do these file do?

Re: Can we use output/extras/tomcat-juli.jar by default?

2007-08-20 Thread fredk2
is an interesting one. I remember seeing somewhere (tomcat docs?) a warning against app reloading; that doing so was a memory leak soon or later. Many Thanks - Fred fredk2 wrote: Hi, To use log4j the documentation http://tomcat.apache.org/tomcat-6.0-doc/logging.html suggest that we need to: 1

Tomcat 6 and log4j for a web application

2007-08-24 Thread fredk2
Hi, still reading :-) http://tomcat.apache.org/tomcat-6.0-doc/logging.html I have setup log4j as above, but with a little twist. If you permission $CATALINA_HOME as read only and you want to customize the log4j.properties then you need to install the log4j1.2.14.jar and log4j.properties in

Re: Tomcat 6 and log4j for a web application

2007-08-24 Thread fredk2
java.util.logging to log4j for the container. and you don't need those steps if all you want is log4j for a webapp Filip fredk2 wrote: Hi, still reading :-) http://tomcat.apache.org/tomcat-6.0-doc/logging.html I have setup log4j as above, but with a little twist. If you permission

RE: POST data lost when switching URL using mod_rewrite and mod_jk

2007-09-06 Thread fredk2
The mod_rewrites encoding can be changed with option 'noescape|NE' (no URI escaping of output) This flag keeps mod_rewrite from applying the usual URI escaping rules to the result of a rewrite. Ordinarily, special characters (such as '%', '$', ';', and so on) will be escaped into their hexcode

mod_jk --enable-prefork

2007-09-10 Thread fredk2
Hi, The documentation for mod_jk (eg. version 1.2.25) about --enable-prefork says: In case you build mod_jk for a multi-threaded Apache httpd 2.0/2.2 MPM (Multi-Processing Module), some areas of mod_jk code need to be synchronized to make it thread-safe. Because configure can not easily

when does use mod_jk and jni?

2007-09-10 Thread fredk2
Hi, Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious about something. In what case do you use mod_jk jni ? Thank you - Fred -- View this message in context: http://www.nabble.com/when-does-use-mod_jk-and-jni--tf4417743.html#a12600560 Sent from the Tomcat - User

Re: mod_jk --enable-prefork

2007-09-10 Thread fredk2
Many thanks for your reply. Is it always implied that if an apache module is deemed 'thread safe' it also implies that it will work in prefork environment maybe at the cost of raw performance ? Thanks again - Fred Rainer Jung-3 wrote: fredk2 wrote: Hi, The documentation for mod_jk (eg

Re: when does use mod_jk and jni?

2007-09-11 Thread fredk2
it.. Regards, Rainer fredk2 wrote: Hi, Reading the documentation for mod_jk (1.2.25 --enable-jni), I am curious about something. In what case do you use mod_jk jni ? Thank you - Fred - To start a new topic, e

Re: Logformat for mod_jk logs

2007-09-11 Thread fredk2
hi I have not used it in long while but i think it required: JkRequestLogFormat %w %V %U %s %T %B %H %m Rgds - Fred Gerhardus.Geldenhuis wrote: Hi Does anyone know if the script tomcat_trend.pl requires a specific JkRequestLogFormat string. Doing a search through the list archives

Re: mod_jk --enable-prefork

2007-09-11 Thread fredk2
you know the code of the module good enough to judge about its MPM independancy. Regards, Rainer fredk2 wrote: Many thanks for your reply. Is it always implied that if an apache module is deemed 'thread safe' it also implies that it will work in prefork environment maybe at the cost

mod_jk --enable-flock documentation question

2007-09-11 Thread fredk2
Hi, Reading the mod_jk (1.2.25) compilation documentation for --enable-flock it says: In case the operating system supports flock system call use this flag to enable this faster locks that are implemented as system call instead emulated by GNU C library. However those locks does not work on NFS

When is mod_jk 1.2.27 expected to be stable?

2008-03-25 Thread fredk2
Hi, When is mod_jk 1.2.27 expected to be stable? I just stumbled accross the change log for the jk connector which shows an interesting feature: the ability to configure a reply_timeout not only per worker, but instead per mapping.

Re: When is mod_jk 1.2.27 expected to be stable?

2008-03-31 Thread fredk2
Many thanks - so far it does not break anything (Linux/Solaris), but I do not have a good (application/)test to confirm the reply_timout feature. Rgds - Fred Rainer Jung-3 wrote: Hi Fred, fredk2 schrieb: Hi, When is mod_jk 1.2.27 expected to be stable? I just stumbled accross

Re: Problem in running Tomcat

2008-04-01 Thread fredk2
Hi, Delete WEB-INF/lib/servlet.jar. I always wonder: why do some applications have the servlet.jar in WEB-INF/lib when the 'curent' one is already in the ./common/lib ? INFO: validateJarFile(/root/apache-tomcat-5.5.26/webapps/ROOT/WEB-INF/lib/servlet.jar) - jar not loaded. See Servlet Spec

Apache fails to start when .host does not resolve.

2008-04-01 Thread fredk2
Hi, when you set a load balancer (mod_jk v1.2.26) with 2 workers: worker.myWorker.type=lb worker.myWorker.balance_workers=tc1Worker, tc2Worker and one of the worker's host cannot be resolved: worker.tc2Worker.host=mytest.mydom.com Then Apache will not start. - since the other

Re: Tomcat 5.5.x or 6.x: ROOT limitation removed?

2008-04-08 Thread fredk2
Hi, i do not think so, but what I did is to set an contex ROOT.xml (not sure the upper case is needed - i would think it is) and then set the docBase (relative to webapps or fully qualified) to your app eg. ./conf/Catalina/localhost/ROOT.xml Context docBase=${catalina.base}/mydir/myapp

Re: Apache fails to start when .host does not resolve.

2008-04-08 Thread fredk2
file (some pain). Rgds Fred Rainer Jung-3 wrote: fredk2 schrieb: Hi, when you set a load balancer (mod_jk v1.2.26) with 2 workers: worker.myWorker.type=lb worker.myWorker.balance_workers=tc1Worker, tc2Worker and one of the worker's host cannot be resolved

Re: jsvc creates pid file owned by root

2008-04-10 Thread fredk2
Hi, can you set the umask before you run jsvc ? Rgds Fred Gunnar Boström wrote: Hi, I can start and stop Tomcat 5.5 with the jsvc program but the problem is that the pid file is created with permissions 600 and owned by root. I want to be able to read the pid file to check if the

Can Tomcat set its pid in a file?

2008-04-10 Thread fredk2
Hi, Currently the pid file is set when you run catalina.sh (unix/linux) if [ ! -z $CATALINA_PID ]; then echo $! $CATALINA_PID fi In some situation (when using sudo, su, catalina.out piped to a log rotation program) it is harder and possibly prone to error to get the right

Re: Can Tomcat set its pid in a file?

2008-04-10 Thread fredk2
use jsvc instead of the shell scripts. --David fredk2 wrote: Hi, Currently the pid file is set when you run catalina.sh (unix/linux) if [ ! -z $CATALINA_PID ]; then echo $! $CATALINA_PID fi In some situation (when using sudo, su, catalina.out piped to a log rotation

Re: Is this possibe? mod_jk ==SSL== AJP/1.3

2006-12-07 Thread fredk2
hi: As far as have seen there is no SSL support for AJP/1.3 - the trafic is in clear between the Apache and tomcat using mod_jk. I guess with apache 2 you can use mod_proxy and ssl to a tomcat using the http connector with ssl. If you have apache and tomcat on separate servers you might have

Re: Is this possibe? mod_jk ==SSL== AJP/1.3

2006-12-08 Thread fredk2
Hi, although I have not tested this personally, but I was told that mod_proxy (_ajp) does not have the Auto Flush option that you can set with mod_jk and thus creates problem for streaming applications. I wonder if others came accross this problem ? Rgds - Fred Hassan Schroeder-2 wrote:

Re: Is this possibe? mod_jk ==SSL== AJP/1.3

2006-12-08 Thread fredk2
ooops - I need to spend more time reading the fine manual :-) tx for the reminder :) Hassan Schroeder-2 wrote: On 12/8/06, fredk2 [EMAIL PROTECTED] wrote: although I have not tested this personally, but I was told that mod_proxy (_ajp) does not have the Auto Flush option that you can

When do you think mod_jk 1.2.29 will be available?

2009-11-23 Thread fredk2
Hi, I am working on a project for a customer and before i put the final dot i'd like to know if 1.2.29 is a couple weeks off or sometime next year sometime. many thanks - Fred -- View this message in context:

Re: When do you think mod_jk 1.2.29 will be available?

2009-11-23 Thread fredk2
good to know the rythm :) thanks - fred Mladen Turk-3 wrote: On 11/23/2009 05:22 PM, fredk2 wrote: Hi, I am working on a project for a customer and before i put the final dot i'd like to know if 1.2.29 is a couple weeks off or sometime next year sometime. Should be by the end

Re: Forward request from apache to specific web application

2009-01-24 Thread fredk2
hi, in your tomcat server's webapp directory create a directory ./ROOT (in caps) and copy your application in there. Then restart tomcat. In the workers.properties set the JkMount /* see: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html Alternatively you can set the context

Deadlock situation detected/avoided with jk_log_lock

2009-02-06 Thread fredk2
Hi, I was doing some stress test (with apache ab, 100 users, 100K requests) to compare an Apache prefork and worker mpm. The test url is a simple hello servlet on Tomcat 6.0.x via mod_jk. On my Sparc Solaris 10 server with only the Apache set to worker mpm I see following error messages in

Re: mod_jk

2009-02-06 Thread fredk2
Hi Rainer, your comment about the watchdog sounds interesting. When you load balance it would seem useful to get feedback from Tomcat itself about its load so that the module can adjust dynamically its load (lbfactor) based on the Tomcat's performance rather than a session/socket count. One can

Re: Deadlock situation detected/avoided with jk_log_lock

2009-02-06 Thread fredk2
: On 06.02.2009 18:13, fredk2 wrote: I was doing some stress test (with apache ab, 100 users, 100K requests) to compare an Apache prefork and worker mpm. The test url is a simple hello servlet on Tomcat 6.0.x via mod_jk. On my Sparc Solaris 10 server with only the Apache set to worker mpm I

Re: Deadlock situation detected/avoided with jk_log_lock

2009-02-11 Thread fredk2
is a fraction faster than posixsem which is a fraction faster than pthread. No Deadlocks, but with fcntl. Thanks again - Fred Rainer Jung-3 wrote: On 06.02.2009 20:40, fredk2 wrote: Do I understand you correctly that when Mr. Orton said to never use pthread nor posixsem mutex (http

RE: redirection

2009-04-01 Thread fredk2
I would be better...The apache httpd web server is more versatile and its vulnerabilities are better researched. You can also add mod_security and other modules to further protect the Tomcat against common attacks (assuming you do not use a WAF firewall). Furthermore you can add more Tomcats and

Re: JK 1.2.28 - load balancer worker fails on startup with one worker down ?

2009-04-17 Thread fredk2
Hi, I understand that when it comes to security you do not want to start the service eg. if the certificate is corrupted you do not want the ssl server to start full stop or if Apache cannot bind to the hostname then it cannot start, etc... . However, in this case there can be a few reasons why

RE: AJP connections just stop working

2009-05-22 Thread fredk2
I was about to say the same earlier, but when i verified with the version (2.3.2) I have installed last month AJP is not listed anymore... Rgds - Fred Anthony J. Biacco wrote: Fyi, you should be able to use jmeter to test AJP connections -Tony --- Manager, IT

Re: application specific log4j configuration

2006-08-04 Thread fredk2
Hi Jan, I believe you can put the log4j.properties into the approot/WEB-INF/classes and the log4j-version.jar and commons-logging.jar into the related WEB-INF/lib see http://tomcat.apache.org/tomcat-5.5-doc/logging.html I tested with the following sample properties for test = DEBUG will

Problem compiling mod_jk 1.2.18 with Apache 1.3.27

2006-08-04 Thread fredk2
Hi: I can succesfully compile mod_jk 1.2.18 against Apache 2.2.2 (configure --with-apxs and make), but when I compile against 1.3.27 and try to start apache I get the following error: Solaris 8: Syntax error on line 8 of /test/site/conf/apache-tomcat_jk.conf: Cannot load

Re: Problem compiling mod_jk 1.2.18 with Apache 1.3.27

2006-08-07 Thread fredk2
Hi Rainer, Wonderful, many many thanks - your patch worked beautifully. I have no more errors with 1.3.27 on Solaris 8 nor Linux. (my apologies for the delay - I wasted time experimenting with the patch command on Solaris and Linux :-( I am opening another email thread about some strange

mod_jk log level and logging issues

2006-08-08 Thread fredk2
Hi: These following issues are observed with mod_jk 1.2.18 on Linux and Solaris 8 with apache 1.3.27 and 2.2.2 (4 combinations). issue 1: With mod_jk 1.2.15 i set my jk log level: JkLogFile logs/mod_jk.log #JkLogLevel info JkRequestLogFormat %w %V %U %s %T %B %H %m While

Re: Connector Problems -

2006-08-08 Thread fredk2
could it be that the loading of the module and the related configuration ?must? be outside of the virtualHost /VirtualHost section ? LoadModule jk_module modules/mod_jk.so kWorkersFile conf/workers.properties JkLogFile logs/mod_jk.log JkLogLevel debug -- View this message in context:

Re: mod_jk log level and logging issues

2006-08-09 Thread fredk2
Hi Rainer: Many thanks for your answers (and fast!). Why do you expect a 404 in case Tomcat is down? If the request matches mod_jk JkMount config, it should try to send to tomcat and the result would be some 50X? What I meant to say was that when previously you might have had a missing

Re: Problem with Mod_JK 1.2.15 and 1.2.18

2006-09-01 Thread fredk2
i think you need this in your httpd.conf mod_jk related configuration section: JkOptions +FlushPackets Rgds, Fred Marcio Camurati wrote: Hi everyone, We have a application that run at the Tomcat container. This application was made at the Tomcat 4.1 using the Mod_jk 1.2.12 with this

Re: [OT] General mappings in Workers2.properties

2007-03-07 Thread fredk2
Hi, Workers2.properties was used for mod_jk2. This product is not maintained anymore. Use mod_jk which is actively maintained by some cool developer(s) :-) It is much better documented and featured. see http://tomcat.apache.org/connectors-doc/ Rgds, FredK -- View this message in context:

When webapps/ROOT does not exist the status code is 400 instead of 404, why?

2007-03-07 Thread fredk2
Hi, In Tomcat 5.5.16 - I forgot to define a context xml file for my application and got status error code 400 which was puzzling. After I added a ROOT subdirectory to my webapps directory I got the status code 404, which was less confusing. Questions: - I checked the http://tomcat.apache.org

tomcat response chunk size

2010-02-12 Thread fredk2
Hi, I have an old client that does not understand the Transfer-Encoding: chunked. My tomcat response is chunked with hex 2000 (8K and a little bit less via AJP: 1FF8). Is there a way to configure Tomcat's chunk size to e.g 100K or another question where or why is it set to 8K? Interestingly,

Re: tomcat response chunk size

2010-02-12 Thread fredk2
: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fred, On 2/12/2010 2:48 PM, fredk2 wrote: I have an old client that does not understand the Transfer-Encoding: chunked. My tomcat response is chunked with hex 2000 (8K and a little bit less via AJP: 1FF8). Do you mean that it's returned

i have a quick jk trace question

2010-07-14 Thread fredk2
Hi, I am looking at a trace a friend made which raised my curiosity: [Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace] ajp_read_into_msg_buff::jk_ajp_common.c (1188): enter [Mon Jul 12 17:49:13.534 2010] [3370:4160136960] [trace] ajp_read_fully_from_server::jk_ajp_common.c (1140): enter