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/(.*) http://headcount.sgi.com:81/resources/$1 [P,L]
RewriteRule ^/(.*) http://headcount.sgi.com:81/$1 [P]


</VirtualHost>



When I go to http://xyz.sgi.com (which is the same machine as headcount.sgi.com, 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,sgi.com/resources/input 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


<html>


<STYLE TYPE="text/css"> <!-- DIV.menu { 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?

Thanks,
Jim.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to