Hi!
I have got some problem with url redirect in haproxy. Above is some snip configuration from pound, I can't so simple do that in haproxy.
Question: There is some simple way in haproxy to redirect bad domain (the sister of oryginal domain:P ) to primary domain? HMM. Only one thing wich i did in haproxy is rewriting http header, section "Host: " to valid host, but i need to send 302 to client... to change uri client to valid.
/Haproxy/
----8<---
reqirep ^Host:\ web.gadugadu.pl Host:\ web.gadu-gadu.pl
---->9----
Any idea? (i know there is option errorloc, but ... what? ;) )
/ pound /
------------8<-----------
Service
HeadRequire "Host: .*web\.gadugadu\.pl$"
URL ".*"
Redirect "http://web.gadu-gadu.pl"
End
------------->9----------
Thanx.
-- Dawid Sieradzki Infrastruktura, Administrator Gadu-Gadu S.A. http://www.gadu-gadu.pl Al. Stanów Zjednoczonych 61 04-028 Warszawa tel.: +48 22 5146499 wew 60 fax.: +48 22 5146498 gg:16200 Spółka zarejestrowana w Sądzie Rejonowym dla m. st. Warszawy, XIII Wydział Gospodarczy KRS pod numerem 0000264575, NIP 867-19-48-977. Kapitał zakładowy: 1 758 461,10 zł - wpłacony w całości.Received on 2008/09/30 15:38
This archive was generated by hypermail 2.2.0 : 2008/09/30 15:49 CEST