[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to connect Apache2 to Tomcat4?



Brett Parker wrote:

Very Quick and Dirty Method:

<VirtualHost blah>
RewriteEngine on
ProxyPreserveHost on
RewriteRile ^/(.*\.jsp) http://localhost:8180/$1 [P] [L]
ProxyPassReverse / http://localhost:8180/
</VirtualHost>
We use a similar method, with all the apps just sitting at a appropiate level, removing the need for ReWrite:

<VirtualHost blah>
ProxyPass        /someapp http://localhost:8180/someapp
ProxyPassReverse /someapp http://localhost:8180/someapp
</VirtualHost>

If you want it to kick off the app at the root level, we just add:

Redirect    /index.html    http://www.realserver.com/someapp

HTH,

Simon.

--

-simonm (E: simon@asidua.com W: +44 28 9072 5060 M: +44 7710 836915)
SAM: "What's shaking Norm?"
NORM: "All four cheeks & a couple of chins."

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: