Re: [Pound Mailing List] Header-Redirect and Listen to 0.0.0.0 in a failover configuration
spammrotze <[email protected]>
| Newsgroups | gmane.comp.web.pound.general |
|---|---|
| Message-ID | <[email protected]> |
... or configure the sysctl.conf (in my opinion /etc/sysctl.conf): net.ipv4.ip_nonlocal_bind = 1 and create an additional network-device like eth0:0 for the shared ip. Greatings Paul schrieb Peter Shaw, Am 15.10.2013 12:38: > As i posted this, after a morning searching, i found this: > > Linux-specific: some people use various redundant /Pound/ solutions for > Linux which require /Pound/ instances on separate machines to bind to > the same address. The default configuration of Linux does not allow a > program to bind() to non-local addresses, which may cause a problem. > > Solution: add > > echo 1 > /proc/sys/net/ipv4/ip_nonlocal_bind > > > maybe this will be my answer. > I'll give it a try. > > > sorry for polluting this list. > > --- > ps > > B. unthoughted.wordpress.com <http://unthoughted.wordpress.com> > T. @peter_shaw > F. facebook.com/PeterDunstonShaw <http://facebook.com/PeterDunstonShaw> > G. github.com/petershaw <http://github.com/petershaw> > > On Oct 15, 2013, at 12:13 PM, Peter Shaw <unthoughted-gM/[email protected] > <mailto:unthoughted-gM/[email protected]>> wrote: > >> Hi folks, >> >> i googled and tested a few hours by now, but i defiantly need your >> help again. >> >> I have two pound servers in hot standby. One has IP .10, the oher has >> IP .20. Both shares a virtual ip .30. If Server A get's down, than >> Server B take over the shared IP. >> I have a config file in sync on both servers. >> >> Till our last failover test, i configured pound to listen on the >> shared IP .30. That breaks our test, because pound on Server B was not >> started, because the shared IP was not configured at start time. >> Ok, we change the ListenHTTP address to 0.0.0.0. Pound starts up, and >> the failover works perfectly. >> Problem was solved. --- not really.. >> >> One of our scripts sends a header redirect to an external site. With >> the .30 address this configuration works, but since we change the >> address to 0.0.0.0 every redirect to an external site will be >> overwritten to the domain url of the backend host. >> >> my domain http://example.com/foo/bar sends a redirect to eg. >> http://www.reddit.com/r/pics/ >> Pound is translating this redirect to http://example.com/r/pics. >> >> I tried both ways: changing the IP back to .30 (can't find a solution >> how to start pound to a address that is unconfigured) or disable the >> domain rewrite while address is 0.0.0.0. Both fails. >> >> Any ideas, how i can manage this? >> Thanks a lot. >> >> peter >> >> --- >> ps >> >> B. unthoughted.wordpress.com <http://unthoughted.wordpress.com> >> T. @peter_shaw >> F. facebook.com/PeterDunstonShaw <http://facebook.com/PeterDunstonShaw> >> G. github.com/petershaw <http://github.com/petershaw> >> >> >> -- >> To unsubscribe send an email with subject unsubscribe to >> [email protected] <mailto:[email protected]>. >> Please contact [email protected] <mailto:[email protected]> for questions. > -- To unsubscribe send an email with subject unsubscribe to [email protected] Please contact [email protected] for questions.