Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
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
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
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
 
Vhosting with Apache 2 & jk

Vhosting with Apache 2 & jk

2003-12-16       - By The Bean

 Back
Hi all,

I have several domains hosted by Apache 2.0.48, and I'd like to start adding
JSPs to each domain. I have Tomcat 4.0.16 running on a different host,
and am using JK to connect them. Virtual hosting is working on Tomcat,
if I go straight to the Tomcat host on port 8080. JK does appear to be
forwarding requests over to Tomcat.

The problem is, the requests always go to the default domain on Tomcat
(webapps/ROOT). It's almost as though the file portion of the URL is getting
forwarded to Tomcat, but not the domain.

My worker properties is pretty much the sample -- I've included it below. I've
also
included the lines from my VirtualHost block for the offending domain.

Any thoughts?

- Bean

... workers.properties

# Define 1 real worker using ajp13
worker.list=worker1

# Set properties for worker1 (ajp13)
worker.worker1.type=ajp13
worker.worker1.host=66.139.244.188
worker.worker1.port=8009
worker.worker1.lbfactor=50
worker.worker1.cachesize=10
worker.worker1.cache_timeout=600
worker.worker1.socket_keepalive=1
worker.worker1.socket_timeout=300


... from httpd.conf

<VirtualHost www.mydomain.local:80>
  ServerName www.mydomain.local
  ServerAdmin www@(protected)
  DocumentRoot "/usr/local/www/data/www.mydomain.local"
  ErrorLog /var/log/apache2/www.mydomain.local/error.log
  ErrorLog /var/log/apache2/www.mydomain.local/access.log common
  DirectoryIndex index.html
  JkMount /main/*.html worker1
  JkMount /main/*.jsp worker1
</VirtualHost>

(The URL I want to go to is htyp://www.mydomain.local/main, since 'main' is
the name of my webapp under Tomcat)


__ ____ ____ ____ ____ ____ ______
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




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