|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2006
/
2006-12
/
Pound is ignoring HeadRequire?
[
Re: [Pound Mailing List] Re: Apache ab - SSL read ... ]
[
pound: relocation error / Adam Andrzej Jaworski ... ]
Pound is ignoring HeadRequire?
Ondrej Kudlik <kepi(at)orthank.net> |
2006-12-16 14:23:35 |
[ FULL ]
|
Hello all,
We just start moving some of our domains to new server with pound as
proxy (we are not using load balancing future now) and we found strange
problem.
I have two machines: firstserver and secondserver and i.e. two
domains firstdomain and seconddomain.
Pound is running on firstserver and there is also apache on port 10000
so firstserver's config is:
# firstserver section
Service
BackEnd
Address 127.0.0.1
Port 10000
End
End
Firstdomain and seconddomain are running well on firstserver but I
want to move seconddomain to secondserver and I'm not able to
change dns so quickly so I do it in Pound.
On secondserver there is also apache on port 10000 so i add this config to
firstserver:
# secondserver section
Service
HeadRequire "Host:.*(seconddomain\.com).*"
BackEnd
Address 192.168.1.10
Port 10000
End
End
Everything is ok, seconddomains is running well on secondserver
BUT...
When i.e. on page http://www.seconddomain.com/index.html
and I have
anchor to firstdomain... i.e. in html page there is
<a href="http://www.firstdomain.com/blabla.html">go
to firstdomain</a>
and I click on it - it takes me to second server instead of
firstserver.
So, what to do now??? I'm able to eliminate this problem with adding
HedDeny "Host:.*(firstdomain\.com).*" into service in secondserver
section but I have 3 domains I want move to secondserver and some
hundreds of those I want to leave on firstserver...
And maybe important think is that there is also pound installed on
secondserver on port 80.
Thanks for any help
--
.''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
`- http://www.nosoftwarepatents.com/cz/m/intro/index.html
|
|
|
Re: [Pound Mailing List] Pound is ignoring HeadRequire?
Robert Segall <roseg(at)apsis.ch> |
2006-12-19 18:47:09 |
[ FULL ]
|
On Sat, 2006-12-16 at 14:23 +0100, Ondrej Kudlik wrote:[...]
I hope this comes before the previous stanza - otherwise it will never
be seen.
[...]
In the new stanza try
HeadRequire "^Host:.*seconddomain\.com.*"
You may have some extra headers like ReferingHost or similar which get
matched. The parentheses are not needed in any case.[...]
|
|
|
Re: [Pound Mailing List] Pound is ignoring HeadRequire?
kepi(at)orthank.net |
2006-12-21 00:11:53 |
[ FULL ]
|
Hello,
at first - thank for you reply
Út, pro 19, 2006 ve 06:47:09 +0100, Robert Segall napsal:[...]
of course :)
[...]
I tried this exactly as you wrote with only one domain (in real,
there is more than one domain - this is why i'm using parentheses
(anydomain\.com)|(anotherdomain\.com) ... )
I will try to inspect it with live http headers or something
simmilar but i'm not sure if i will find something usefull
Thanks
--
.''`. Ondra 'Kepi' Kudlik
: :' : Debian GNU/Linux User
`. `'
`- http://www.nosoftwarepatents.com/cz/m/intro/index.html
|
|
|
|