On Thu, Dec 01, 2011 at 09:30:31AM -0800, Bryan Talbot wrote:
> You can do it but both replacements need their own statement: one for
> the URI and one for the Host header.
There's an AWFUL trick for doing it. Please, I really said AWFUL. The rewrite rules accept \r\n. So if you do something like this :
redidel ^Host: reqirep ^([^\ ]*)\ /foo/?domain=([^;]*);(.*) \1\ /foo\3\r\nHost:\ \2
You could make it work. The principle is to remove the Host header first then to rewrite the request line to append a CRLF followed by a Host header.
Don't beat me, I already warned it was ugly !
cheers,
Willy
Received on 2011/12/03 22:54
This archive was generated by hypermail 2.2.0 : 2011/12/03 23:00 CET