httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bjørn Stabell <bj...@exoweb.net>
Subject Bug in rewrite or proxy?
Date Sat, 08 Apr 2006 07:40:31 GMT
Hi guys,

I'd like a setup with ssl + proxy + deflate (and hopefully  
mod_proxy_balancer), but I'm running into problems:

In Apache 2.0.54 (Debian Stable) there's no way to do deflate + proxy
http://issues.apache.org/bugzilla/show_bug.cgi?id=31226

In Apache 2.2.1 (the release candidate) mod_proxy_balancer and  
mod_deflate seems ok, but either mod_proxy or mod_rewrite is breaking  
badly.  Here's what the trimmed down config file looks like (it still  
exhibits the same problem):

	Listen 192.168.100.22:80
	<VirtualHost 192.168.100.22:80>
	        ServerName www.domain.com

	        RewriteEngine On
	        RewriteRule ^/external/(.*)		http://192.168.100.66:8099/$1 [P]
	        RewriteRule  ^/(.*)			http://127.0.0.1:8080/$1 [P]
	</VirtualHost>

What happens is:

SCENARIO 1:

1. Restart Apache

2. Access http://www.domain.com/
-> is proxied to 127.0.0.1:8080 as expected

3. Access http://www.domain.com/external/ (and all subsequent requests)
-> is still proxied to 127.0.0.1:8080, although rewrite_log shows it  
matches the /external rule


SCENARIO 2:

1. Restart Apache

2. Access http://www.domain.com/external/
-> is proxied to 192.168.100.66:8099 as expected

3. Access http://www.domain.com/external/ (and all subsequent requests)
-> is still proxied to 192.168.100.66:8099, although rewrite_log  
shows it matches the / rule

Any ideas?  (Btw, I don't have mod_proxy_balancer loaded.)

Rgds,
Bjorn

Mime
View raw message