[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/

I use a similar rule to pass dynamic page requests to a separate apache process

<VirtualHost blah>
RewriteEngine on
RewriteRule ^/(.*\.(cgi|pl|sh|shtml|php))$$1 [P]
RewriteRule ^/(.*\.(cgi|pl|sh|shtml|php)\?.*)$1 [P]

I have two apache processes, one listening on the external interface and one listening on localhost. Both on port 80. I did it this way because for some reason the browser sometimes gets redirected to the backend server's port (which if isn't 80 would look quite funny in the location bar).

wK (www.doubleukay.com)

Reply to: