|
Configuring an Apache Reverse-Proxy Server for Webtop on Tomcat
| | |
|
Configuration
This tip is for Tomcat 4 and Apache 2. It is assumed that these instructions are also valid for Webtop 6 and Tomcat 5, because Webtop 6 is certified with Apache 2 as a proxy server. The only connectors between Apache and Tomcat that are supported by Apache are mod_jk, which is recommended, and mod_proxy, which does not have some of the features in mod_jk and does not work well with Webtop. (Refer to http://tomcat.apache.org/faq/connectors.html for more information on these two connectors.)
WDK code frequently flushes the response and updates the progress bar for Webtop operations. But the Apache reverse proxy server by default buffers the response and waits till it reaches its limit before the response is flushed. This causes a long delay before the progress bar is seen initially. To remedy this, you must configure Apache to use the mod_jk reverse proxy module. Full information on the mod_jk module is available on the Apache Jakarta project site, http://tomcat.apache.org/tomcat-3.3-doc/mod_jk-howto.html.
After you have configured Tomcat and Apache according to the Apache directions above, make sure you have the following settings in your Apache configuration file httpd.conf. (Use the appropriate module file name for your operating system.) Note that by default the Apache server will buffer the response even you are using "mod_jk". You need to set "JkOptions +FlushPackets" in httpd.conf file to disable this.
LoadModule jk_module modules/mod_jk.so
#AddModule mod_jk.c
JkWorkersFile C:/TomcatServer/jakarta-tomcat-5.0.28/conf/workers.properties
JkLogFile C:/TomcatServer/jakarta-tomcat-5.0.28/logs/mod_jk.log
JkLogLevel debug
JkOptions +FlushPackets
JkMount /* testWorker
|
|