|
|
FAQ and Trouble Shooting
Any quetions and comments are welcome to me.
Please make the subject of your mail to begin with 'OOP[tomcat]' (quotes are not required.). I'll reply to you soon.
Index:
Q: How can I handle the request to the virtual hosts on Apache?
A: The mapping of the path of the request URI to the context can be done by 'ApJServMount' directive, normaly in jserv.conf(or tomcat.conf) which is specified by 'Include' directive' appended to 'httpd.conf'. For example, with
ApJServMount /examples ajpv12://jun_tomcat:8007/examplesthe request such as
<VirtualHost 205.205.150.103>
DocumentRoot /export/home/jun/public_html
ServerName www.juntest.com
ErrorLog logs/juntest.com-error_log
CustomLog logs/juntest.com-access_log common
<IfModule mod_jserv.c>
ApJServMount /examples ajpv12://jun_tomcat:8007/examples
<Location /examples/WEB-INF/ >
AllowOverride None
deny from all
</Location>
</IfModule>
</VirtualHost>
Q: I complied mod_jserv by APXS into the Apache, which is complied with mod_ssl. When Apache starts up with SSL (by 'apachectl sslstart'), JServ fails to start JVM once. After that JServ tries to start JVM again and again between some time interval and finally it succeed. Without SSL (by 'apachectl start'), there is no problem.
A: It is due to the heavy tasks to enable mod_ssl. To avoid this, change the order of the modules to be loaded. In case that mod_jserv is the last module to be loaded, the conflicts with mod_ssl will not occur. Just edit 'httpd.conf' so as to the lines of
LoadModule jserv_module libexec/mod_jserv.so LoadModule vhost_alias_module libexec/mod_vhost_alias.so ---- ---- ClearModuleList AddModule mod_jserv.c AddModule mod_vhost_alias.cNote that the order to be loaded is reverse to the order in 'httpd.conf'.
Java and all Java-based trademarks and logos are trademarks or registered of Sun Microsystems, Inc. in the United States and other countries.
|
|
ALL CONTENTS COPYRIGHT 2000, Jun Inamori. All rights reserved.
Any questions and comments are welcome to
Jun Inamori
.