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
JSP - A mailing list about Java Server Pages specification and reference
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
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
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
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
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Subject: Re: jk_mod and binding tomcat 's root to an apache directory

Subject: Re: jk_mod and binding tomcat 's root to an apache directory

2007-11-04       - By Rainer Jung

 Back
OK, but that doesn't fit into your first mail.

So here is the proposed solution:

LoadModule rewrite_module modules/mod_rewrite.so
RewriteEngine On
RewriteRule /tomcat/(.*) /$1
[E=JK_WORKER_NAME:myworker,H=jakarta-servlet,PT]

The RewriteRule line extends until "PT]"

This will activate JK forwarding via a worker called myworker (you can
replace it by the name of your worker) for everything that starts with
/tomcat/ and also changes the forwarding URL by stripping the leading
"/tomcat".

FOR Apache we use mod_rewrite for those tricks, because it is a modular
server and there exists many usefuk modules. For IIS this kind of
ability is already build into the JK isapi plugin.

Is that what you are looking for?

Note that now we don't replace /tomcat by /servlet-examples, so a
working request now would be /tomcat/servlet-example/something.

Regards,

Rainer

Shug Boabby schrieb:
> On 4 Nov 2007, at 13:48, Rainer Jung wrote:
>>> To reiterate what I would like to do... I want to be able to set up
>>> http://myserver.com/tomcat to point to http://myserver.com:8180 and
>>> likewise for SSL. It surprises me that more people do not want a simple,
>>> hassle-free setup like this!
>>
>> This requirement is not well defined.
>>
>> What do you want to happen with a request like this:
>>
>> http://myserver.com/tomcat/a/b/c.d
>
> I would like that request to go to tomcat, where tomcat sees that it
> received the request "a/b/c.d" on the myserver.com domain. The result
> would be the same as calling
>
>   http://myserver.com:8180/a/b/c.d
>
> directly. And similarly for SSL. I'd like to use Apache to do the SSL
> layer (as it is more efficient and saves maintaining 2 sets of
> certificates), but I still want Tomcat to know if it is communicating
> over a CONFIDENTIAL channel or not.
>
>
> -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
> To start a new topic, e-mail: users@(protected)
> To unsubscribe, e-mail: users-unsubscribe@(protected)
> For additional commands, e-mail: users-help@(protected)
>

-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
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.