Apache + Tomcat + JK2 = проблемы :(
-
- Уже с Приветом
- Posts: 13722
- Joined: 16 Jan 2001 10:01
-
- Уже с Приветом
- Posts: 257
- Joined: 05 Apr 2003 17:06
- Location: Европа :: Латвия
-
- Уже с Приветом
- Posts: 5669
- Joined: 13 Oct 2000 09:01
- Location: East Bay, CA
Pukite wrote:Palych wrote:Chto-to v configah ne tak... Ne dolzhen on Ajp13Connector iskat'...
Нельзя ли попросить выложить какие-либо готовые 'правильные' конфиги?
Посмотрела JK2
http://jakarta.apache-korea.org/tomcat/tomcat-4.1-doc/jk2/jk2/configtc.html
Там же вроде дофига всего конфигурировать? Ето все сделано уже?
http://jakarta.apache-korea.org/tomcat/tomcat-4.1-doc/jk2/jk2/configweb.html
Native server configuration
For Apache2 you can also use httpd.conf instead or in addition to workers2.properties. Other servers may support similar configuration - for example using registry or their native formats. This configuration mode is less tested - but provides some unique advantages (and disadvantages )
I'll describe the apache2 specifics, since this is the only one implemented. We use 2 directives - JkSet is a top-level directive is used to set global config options, and JkUriSet is used to set options for Location sections
JkSet takes 2 parameters, the property name ( including component name ) and the value. (Note: probably we should change it to 3 params, and separate the component name from property )
Each Location that has a JkUriSet will automatically create a jk2 [uri] object, using the Location path and the vhost. All JkUriSet directives will set attributes in this [uri] object, exactly like properties in a ini file section
You can mix workers2.properties and JkUriSet - for example workers and global options can be set in worker2.properties, but all uri properties in httpd.conf. Some people might preffer to have only one config file and use httpd.conf for all configuration.
The biggest benefit is that Apache2 mapping is used instead of jk2 to detect the requests that need to be sent to tomcat. Apache2 has been optimized and tuned to server huge number of servers and uris - if you have only few the diference may be hard to notice. Some people preffer to use the httpd.conf format and some tools could be better used in this mode.
One major problem is that reconfiguration is not supported if httpd.conf is used. You can still enable/disable/add workers if you use workers2.properties, and you could add or change uri properties in that file.
Сабина
-
- Уже с Приветом
- Posts: 569
- Joined: 14 Dec 2003 04:06
- Location: Львов->Киев->Торонто