Re: Redirect Question

From: Willy Tarreau <w#1wt.eu>
Date: Fri, 26 Feb 2010 22:48:22 +0100


On Fri, Feb 26, 2010 at 01:39:48PM -0800, Sriram Chavali wrote:
> Thanks for your reply,
>
> The redirect location is actually on a different server that is behind the firewall. What is best way to configure for this?

Then you'd better create a specific backend for it and force rewrite the URL for that. It's a bit messy but at least you don't even send the 302 to the client and instead you forward the rewritten faulty request to the server :

frontend xxx

	...
	use_backend violation if acl_met
	...

backend violation
	mode http
	reqrep ^([^\ ]*)\ ([^\ ]*)\ (.*) \1\ /violation.html\ \3
	server srv1 1.1.1.1:8080

Willy Received on 2010/02/26 22:48

This archive was generated by hypermail 2.2.0 : 2010/02/26 23:00 CET