6
USING ROBOHELP SERVER 8
Getting started
<Engine>
......
<Host>
................
</Host>
<Listener className="org.apache.jk.config.ApacheConfig"
modJk=<apache-install-folder>\modules\<mod_jk_module>
workersConfig=<apache install folder>\conf\workers.properties />
</Engine>
modJK
and
workersConfig
must have appropriate values. For example:
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="C:\Program Files\Apache Software Foundation\Apache2.2\modules\mod_jk-apache-
2.2.4.so"
workersConfig="C:\Program Files\Apache Software
Foundation\Apache2.2\conf\workers.properties" />
2
Stop the Apache HTTPD Web server if it is running.
3
Restart Tomcat. The <tomcat-install-folder>\conf\auto\mod_jk.conf file is generated. This file decides which URLs
Apache passes to Tomcat.
Note:
In mod_jk.conf, Tomcat creates a <VirtualHost> XML tag whose argument is the name of the <Host> tag just
before the <Listener> (for modJK) tag in server.xml of Tomcat. Change the value of the name attribute of the <Host> tag
to the server name.
Include the auto-generated file in Apache’s httpd.conf file
Add
"Include <tomcat-install-folder>\conf\auto\mod_jk.conf"
at the start of the httpd.conf file.
Restart the Apache HTTPD server
If the Apache HTTPD server service does not start due to some error, do the following:
1
Run the command prompt.
2
Go to <apache-install-folder>\bin.
3
Run httpd.exe to check for errors.
Enable UTF-8 encoded URLs
Modify <tomcat-install-folder>\conf\server.xml and enable UTF-8 encoded URLs in all connector tags:
..............
<Connector port="9090" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443"
URIEncoding="UTF-8" />
............
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />
............
Configure Apache for IP v6
1
To enable Apache to work with IP v6 addresses, download IP v6 enabled Apache from
http://win6.jp/Apache22/index.html
, unzip it, and follow the instructions given in README.v6.txt.
2
Open <apache httpd install>\conf\httpd.conf,and locate the
Listen
directive. Add the directive to make Apache
listen on all inbound IP v6 and v4 addresses on any identified port.
Listen 80