tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Lynch <>
Subject Rewrite to alternate port hooked to mod_jk isn't working as expected.
Date Tue, 14 Dec 2004 20:09:30 GMT
I have two apache servers running on a single system.  The main one is 
apache 2 the secondary one on port 81 is apache 1.3. Since I was 
unsuccessfull at getting the combination Tomcat 4.1.30, Apache 2 and 
mod_jk2 working together I brought up 1.3 and got it working with Tomcat 
4.1.24 and mod_jk.  Now I'm trying to get a rewrite rule to connect 
through the main Apache server to port 81 of the other one.  Here is the 
rewrite rule.

NameVirtualHost xx.xx.xx.xx
<VirtualHost xx.xx.xx.xx>
RewriteEngine on
RewriteLog /var/log/httpd/httpd_rewrite.log
RewriteLogLevel 6
RewriteRule   ^/resources/(.*)$1  [P,L]
RewriteRule   ^/(.*)$1  [P]


When I go to (which is the same machine as, but a different IP address) I get he intro page for 
Apache 1.3 so I know the second rule is working.  But when I go to 
http://xyz, I get what looks like what might be 
the right output, but it's got this header on it. 

Date: Tue, 14 Dec 2004 19:44:45 GMT
Server: Apache/1.3.33 (Unix) mod_jk/1.2.6
Pragma: no-cache
Cache-Control: no-cache
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Content-Type: text/html;charset=ISO-8859-1
Content-Length: 36695
Connection: close


<STYLE TYPE="text/css">
<!--	{ position: absolute; top: 79px; visibility: hidden;}
#menu0		{ left: 156px; z-index: 101; width: 107px;}
#menu1		{ left: 264px; z-index: 102; width: 110px;}

Removing the first rule gives me exactly the same results.

What I should be seying is the Content-type followed by the rest of the html, but 
what's that extra stuff doing there?  I assume the mod_jk put it in there.  

So how can I make this configuration work, or can it?


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message