tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Need Help to configure Apache Tomcat with mod_jk.so
Date Tue, 10 May 2011 20:15:52 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

jatinder,

On 5/10/2011 9:28 AM, jatinder singh wrote:
> # Should mod_jk send SSL information to Tomcat (default is On)
> JkExtractSSL On
> # What is the indicator for SSL (default is HTTPS)
> JkHTTPSIndicator HTTPS
> # What is the indicator for SSL session (default is SSL_SESSION_ID)
> JkSESSIONIndicator SSL_SESSION_ID
> # What is the indicator for client SSL cipher suit (default is SSL_CIPHER)
> JkCIPHERIndicator SSL_CIPHER
> # What is the indicator for the client SSL certificated (default is
> SSL_CLIENT_CERT)
> JkCERTSIndicator SSL_CLIENT_CERT

Why have you repeated all default values, here? Just wondering...

> My workers.properties file is
> workers.tomcat_home="C:/Program Files/Apache Software Foundation/Tomcat 6.0"
> workers.java_home="C:/Program Files/Java/jdk1.6.0_13"
> ps=/

The above settings are useless, assuming you're using a version of
mod_jk after about 2002.

> # Define worker 'worker1'
> worker.list=worker1
> # Set properties for worker 'example' (ajp13)
> worker.default.type=ajp13
> worker.default.host=localhost
> worker.default.port=8009
> worker.default.cachesize=10
> worker.default.cache_timeout=600
> worker.default.socket_keepalive=1
> worker.default.recycle_timeout=300
> worker.default.lbfactor=1

All that looks okay, though you don't need an 'lbfactor' for a
non-clustered worker.

> I have also changed Tomcat server.xml file
> <Connector     port="8009"
>                 protocol="AJP/1.3"
>                 redirectPort="8443"
>                 enableLookups="false"
>                 request.tomcatAuthentication="false"

Why do you have "request.tomcatAuthentication" here?

What version of Tomcat are you running?

> <Listener className="org.apache.jk.config.ApacheConfig"
>             workersConfig="C:/Program Files/Apache Software
> Foundation/Apache2.2/conf/jk/workers.properties"
>             mod_Jk ="C:/Program Files/Apache Software
> Foundation/Apache2.2/modules/mod_jk.so"
>             jkLog="C:/Program Files/Apache Software
> Foundation/Apache2.2/logs/jk.log"
>             jkDebug="info" noRoot="false"/>

Don't use the ApacheConfig listener, really for any reason. Once you
have your workers.properties file, it's entirely unnecessary and is more
likely to destroy your configuration than anything else.

> both in Server tag and in Engine tag.

Both of what? <Connector> and <Listener>?

<Connector> should only be at the <Service> level and should never be
repeated.

My guess is that you have a Tomcat startup error, but you only posted
the httpd log file.

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk3JnPgACgkQ9CaO5/Lv0PB0HQCfbQuJFrOzjce5v+LIJ1xuBJXE
DfQAoJXkHjevrx1pBcoW2HZySnmQ9HBf
=jwZG
-----END PGP SIGNATURE-----

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


Mime
View raw message