Apache / mod_proxy / Tomcat

2010-02-05 Thread Farid Izem
Hi,

I have setup an Apache Web Server in front of a Tomcat Web Container.
Basically, All request are handle by Apache and passed to Tomcat using
mod_proxy_ajp
Apache is binded on the IP address of the computer, tomcat is binded
on localhost:8009
When i take a look at the tomcat manager, i see that a lot of Tomcat
Thread with the status keepalive from the same source IP address.

The main configuration of :
ProxyPass /webapp ajp://localhost:8009/webapps retry=30
ProxyPassReverse /webapp ajp://localhost:8009/webapps

Would it be possible to free the connection from Apache Server to
Tomcat server ?
Netstat show a lot of established connections but there is not data sent.
How could we free these keepalive connections that are being
maintained between Apache and Tomcat.

i tryied
ProxyPass /webapp ajp://localhost:8009/webapps
retry=30 disablereuse=On
but this is not recognize.

Can anyone help me ?

Regards,

Farid.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Question about TLS Ciphers in tomcat

2008-10-06 Thread Farid Izem
Hi,

I'm trying to enforce the https connections of my tomcat server by
disabling weakness ciphers.
In the tomcat documentation, there is a directive cipher which allow
to specify a list of ciphers.
Has anyone use this directive and how does il work ?

Kind Regards,

Farid

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



Jmx with Java 1.4.2_16 and Tomcat 5.0

2008-02-27 Thread Farid Izem
Hi all,

I'm used to deploy java 1.5.0 and Tomcat 5.5 with jmx enabled. With
this i can easily connect to MbeanServer using JConsole.
Is there a way to do exactly the same with Java 1.4.2_XX and Tomcat
5.0 ? I'm facing issue with this couple and i want be able
To plug JMX JConsole.

AS far as i have read on the net, JMX layer is provide as separates jar files.
Can anyone explain how to deploy the jar files and how to configure tomcat 5.0 ?
Is it exactly the same as java 1.5 with tomcat 5.5 ?

Kind Regards,

Farid

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



Installing Apache on Windows

2006-12-11 Thread Farid Izem

Hi All,

I have installed Jdk 1.5.0_09 and Tomcat 5.5.20 on Windows.
I d'like to tune the service and make a separate instance of
Tomcat (ie CATALINA_BASE).

According the Windows Service How-To, i have suppress
The default Service using tomcat5.exe //DS//Tomcat5

I'm trying to reinstall one using the following command :

D:\Applis\Tomcat\Tomcat 5.5.16\bintomcat5.exe //IS//Tomcat --Description
Apache Tomcat 5 Production
--install=D:\Applis\Tomcat\Tomcat 5.5.16\bin\tomcat5.exe --Jvm=Auto
--StartMode=Jvm --StopMode=jvm
--StartClass=org.apache.catalina.startup.Bootstrap --StartParams=start
--StopClass=org.apache.catalina.startup.Bootstrap --StopParams=stop
--JvmMs=512M --JvmMx=512M
--JavaHome=D:\Applis\Java\jdk1.5.0_04
--Classpath=%JAVA_HOME%\lib\tools.jar;%CATALINA_HOME\bin\bootstrap.jar

Each time, i try to start the Window Service, it refuses to start with error
0 (0x0).
What am i doing wrong ? As soon as my system variable JAVA_HOME and
CATALINA_HOME
Are well set.

Can anyoine help me ?

Kind Regards.

Farid.


Question About Garbage Collector Logging in Tomcat5.5 on Windows

2006-04-20 Thread Farid Izem
Hi, i'm using tomcat 5.5 on Windows 2003.
I'd like to specify GC Logging in the Java Options such as
-Xloggc:gc_log_file.txt  -XX:+PrintGCDetails  -XX:+PrintGCTimeStamps)


How do i specify them in the Windows Registry as we start Tomcat as a
Windows Service ?

Kind Regards,

Farid.


Accessing the webapps

2006-03-03 Thread Farid Izem
Hi all,

I'm currently using Tomcat 5.0.28 On Linux.
I have a webapps which is myfirstwebapp
It is under $CATALINA_BASE/webapps.

When i use a web browser using http://localhost:8080/myfirstwebapp, it works
fine.
What i want to do is to change the URL to http://localhost:8080/myappwithout
changing the name of the webapps (ie $CATALINA_BASE/webapps/myfirstwebapp).

Is there someting i can put in the context file in
$CATALINA_BASE/conf/Catalina/localhost/myfirstwebapp.xml ?

Many thanks for you help,

Kind Regards,

Farid.


Re: Apache / mod_jk / Multiples instances of Tomcat

2006-02-22 Thread Farid Izem
Hi David,

Thanks for you help. This was exactly what i hace done.
But, the main problem was located on the tomcat servers.
As it was not me who install the tomcat servers, we find that
All the webapps were corrupt due to a file transfer.

Now, all work properly.

Many thanks,

Farid.

On 2/15/06, David Avenante [EMAIL PROTECTED] wrote:

 You can see this URL http://www.paulkimbrel.com/?p=3

 my configuration for me with one apache in front on two tomcat (for my
 tests)
 is :

 after install mod_jk of course ;)

 httpd.conf :
 # Load mod_jk module
 LoadModulejk_modulemodules/mod_jk.so
 JkWorkersFile /etc/apache2/workers.properties
 JkLogFile /var/log/apache2/mod_jk.log
 JkLogLevelERROR
 JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
 JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories
 JkRequestLogFormat %w %V %T
 JkMount /cluster-1.0-SNAPSHOT/app*  loadbalancer

 workers.properties :

 # workers.properties

 ps=/

 # List the workers name
 worker.list=loadbalancer
 # 
 # First worker
 # 
 worker.node01.port=8009
 worker.node01.host=agnes
 worker.node01.type=ajp13
 worker.node01.lbfactor=1
 worker.node01.domain=cluster1
 # 
 # Second worker
 # 
 worker.node02.port=9009
 worker.node02.host=ovea-inspiron
 worker.node02.type=ajp13
 worker.node02.lbfactor=1
 worker.node02.domain=cluster1
 # --
 # Load Balancer worker
 # --
 worker.loadbalancer.type=lb
 worker.loadbalancer.sticky_session=true
 worker.loadbalancer.balanced_workers=node01,node02

 as you can see in the list of worker only the loadbalancer worker is
 present.
 Be carreful in your server.xml to add jvmRoute with same name of worker.

 Engine name=Catalina defaultHost=localhost jvmRoute=node01 ...



 On 2/15/06, Farid Izem [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I'm currently trying to build a Apache load balancings against multiples
  instances of Tomcat.
 
  On my host, i have three instances of Tomcat (ie using CATALINA_BASE
  variable), each listening on differents ports for AJP Connector.
  On the same server, i have an Apache using Mod_jk.
 
  Is it possible to configure load balancing across the three instances of
  Tomcat using mod_jk ?
 
  Morever, in the worker.properties, i don't known how to configure
  worker.tomcat_home as it is different for each instance of Tomcat ?
 
  Any help would be appreciate, Any Internet Links ..
 
  Kind Regards,
 
  Farid
 
 




Multiple Realm in Tomcat

2006-02-22 Thread Farid Izem
Hi all,

I have successufully configure my Tomcat to use ldap service to authenticate
my users.
Now, i would like to know if it is possible to have multiples Realm for the
same Webapps.
With this, if the first Realm fails to authenticate users, it will
automatically use the next Realm.

Imagine, a JNDI Realm for LDAP users and JDBC Realm for others kind of
people or in case of
crash of the first JNDI Realm.

Kind Regards,

Farid


Apache / mod_jk / Multiples instances of Tomcat

2006-02-15 Thread Farid Izem
Hi all,

I'm currently trying to build a Apache load balancings against multiples
instances of Tomcat.

On my host, i have three instances of Tomcat (ie using CATALINA_BASE
variable), each listening on differents ports for AJP Connector.
On the same server, i have an Apache using Mod_jk.

Is it possible to configure load balancing across the three instances of
Tomcat using mod_jk ?

Morever, in the worker.properties, i don't known how to configure
worker.tomcat_home as it is different for each instance of Tomcat ?

Any help would be appreciate, Any Internet Links ..

Kind Regards,

Farid


Tomcat Oracle Jsdk 1.5

2006-01-09 Thread Farid Izem
Hi all,

i need to install Tomcat 5.5.12 based on jsdk 1.5.
At this point, no problem.
I need to add Oracle Driver. I planned to use ojdbc14.jar
But i think this driver is only support for previous release of jsdk (1.4,
1.3, 1.2 etc).

My first question is : can we use jsdk 1.4 in place of jsdk1.5 ?
My Second question is : does the ojdbc14.jar will be support for jsdk1.5 and
where can i download it ?

King Regards,

Farid


Tomcat / LDAPS

2005-11-17 Thread Farid Izem
Hi all,

I'd like to configure a LDAPS Authentication to protect some of my webapps.
Has anyone already done that ? Can you provide me some samples on this
subject ?
I know, i have to declare a Realm (JNDIRealm). This has been already done
But Tomcat refused to start.

Can you help me please ?

King Regards,

Farid.