At the risk of violating your request (not to point you to the documentation), 
I'm going to point you at the documentation.

In particular: manual/mod/mod_proxy.html#proxypassreverse (from the Apache 
httpd 
docs)

This will rewrite response URLs. However, there is a caveat. It will not 
rewrite 
any absolute URLs within the documents served. So if you have 
/context/somewhere/someplace inside a particular page, this link will be 
returned intact and the user will not be able to reach it. Again according to 
the document, you'll need to look at Nick Kew's mod_proxy_html 
(http://apache.webthing.com/mod_proxy_html/). There appears to be a tutorial on 
reverse proxying at that location as well.

You may find it far easier to just rename the war file to ROOT.war and be done 
with it.

. . . . just my two cents

/mde/


----- Original Message ----
From: Jeffrey Janner <jeffrey.jan...@polydyne.com>
To: Tomcat Users List <users@tomcat.apache.org>
Sent: Thu, November 4, 2010 6:56:20 AM
Subject: Is there a GOOD AJP-based cluster reference?

I've googled and not found anything very helpful, particularly nothing
recent.



I am trying to set up AJP load balancing using Apache 2.2.17 to Tomcat
6.0.29.

I'd like to route root to the Tomcat named context (not root).  From the
docs I've read so far, I should be able to, but all the references in
the returned html have the context name stuck at the beginning of the
path, and I can't seem to get it to go away.



I know I can just rename the context as ROOT, but I thought I'd try
deploying it the way the dev team gives it to me.



I've tried:

     ProxyPass / balancer://mycluster/context

    <Proxy balancer=//mycluster>

         BalancerMember ajp://hostname:8009

    </Proxy>

and

     ProxyPass / balancer://mycluster

    <Proxy balancer=//mycluster>

         BalancerMember ajp://hostname:8009/context

    </Proxy>



Nothing seems to be working.  Obviously, I'm not clear on some concept.

Any help would be appreciated.

Jeff



p.s. Don't send me to the Tomcat & Apache docs, I've read them.

=================================================================
Jeffrey W. Janner            e-mail: jeffrey.jan...@polydyne.com
<mailto:jeffrey.jan...@polydyne.com> 
PolyDyne Software Inc.          web: http://www.polydyne.com/ 
<http://www.polydyne.com/> 
9390 Research Blvd.           phone: (512) 343-9100 x8930
Building 1, Suite 400           fax: (512) 343-9297
Austin, TX 78759
=================================================================



__________________________________________________________________________

Confidentiality Notice:  This Transmission (including any attachments) may 
contain information that is privileged, confidential, and exempt from 
disclosure 
under applicable law.  If the reader of this message is not the intended 
recipient you are hereby notified that any dissemination, distribution, or 
copying of this communication is strictly prohibited.  


If you have received this transmission in error, please immediately reply to 
the 
sender or telephone (512) 343-9100 and delete this transmission from your 
system.



      

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to