Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
JSP - A mailing list about Java Server Pages specification and reference
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
jk connector problems

jk connector problems

2006-11-14       - By Martin Hochreiter

 Back
Reply:     1     2     3     4     5     6     7     8  

Hi!

I have some problems with Tomcat & JK Connector and Apache Virtual hosts.

Apache should only give requests of one virtual host to the jk
connector, but
it handles all requests over to the jk connector, no matter what host.
Actually the log files of jkerror.log are very big - and getting bigger.

As jk could not map the uri of other virtual hosts, it gives the request
back to apache (or something) and the right page opens, but I don't
want apache to handle all requests of all virtual hosts to the connector.

Can somebody please give me  hint?


I have configured apache like that:

-- ---- ---- ---- ------ http443.conf -- ---- ---- ---
NameVirtualHost 10.0.0.6:443
<VirtualHost 10.0.0.6:443>
               ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
               Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
               Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
               PerlModule Apache2::Reload
               PerlInitHandler Apache2::Reload
               PerlModule Apache2::RequestRec
       ErrorLog /var/log/apache2/httpserror_log
       TransferLog /var/log/apache2/httpsaccess_log
       SSLEngine on
       SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
       SSLCertificateFile /etc/apache2/ssl.crt/otrs.crt
       SSLCertificateKeyFile /etc/apache2/ssl.key/otrs.key
       <Files ~ "\.(cgi|shtml|phtml|php3?)$">
           SSLOptions +StdEnvVars
       </Files>
       <Directory "/srv/www/cgi-bin">
           SSLOptions +StdEnvVars
       </Directory>
       SetEnvIf User-Agent ".*MSIE.*" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1 (See http://ade-1.ora-code.com).0 force-response-1 (See http://nse-1.ora-code.com).0
       CustomLog /var/log/apache2/ssl_request_log   ssl_combined
       ServerName XXX1.xx
       DocumentRoot /opt/otrs/var/httpd/htdocs/
       <Location /otrs>
               ErrorDocument 403 /otrs/index.pl
               SetHandler  perl-script
               PerlResponseHandler ModPerl::Registry
               Options +ExecCGI
               PerlOptions +ParseHeaders
               PerlOptions +SetupEnv
               Order allow,deny
               Allow from all
       </Location>

       # directory settings
       <Directory "/opt/otrs/bin/cgi-bin/">
               AllowOverride None
               Options +ExecCGI -Includes
               Order allow,deny
               Allow from all
       </Directory>
       <Directory "/opt/otrs/var/httpd/htdocs/">
               AllowOverride None
               Order allow,deny
               Allow from all
       </Directory>
       SetEnvIf Request_URI "/*" no-jk
</VirtualHost>

NameVirtualHost 10.0.0.3:443
<VirtualHost 10.0.0.3:443>
       ErrorLog /var/log/apache2/httpserror_log
       TransferLog /var/log/apache2/httpsaccess_log
       ServerName XXX.xx
       SSLEngine on
       SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
       SSLCertificateFile /etc/apache2/ssl.crt/intranet.crt
       SSLCertificateKeyFile /etc/apache2/ssl.key/intranet.key
       SetEnvIf User-Agent ".*MSIE.*" \
                nokeepalive ssl-unclean-shutdown \
                downgrade-1 (See http://ade-1.ora-code.com).0 force-response-1 (See http://nse-1.ora-code.com).0
       CustomLog /var/log/apache2/ssl_request_log   ssl_combined
       JkMount /* default
</VirtualHost>
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---

in http.conf you read:


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---

JkWorkersFile "/etc/apache2/workers.properties"
JkLogFile "/opt/xtreme/tomcat/logs/mod_jk.log"
JkLogFile /var/log/apache2/jkerror.log
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---

and at least the workers.properies

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
       workers.tomcat_home=/opt/xtreme/tomcat
      ps=/
      worker.list=default
      worker.default.port=8009
      worker.default.host=127.0.0.1
      worker.default.type=ajp13
      worker.default.lbfactor=1
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------









-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)


©2008 junlu.com - Jax Systems, LLC, U.S.A.