|
/
Zope
/
Apsis
/
Pound Mailing List
/
Archive
/
2008
/
2008-05
/
Rev Proxy based on Url
[
Proxying OWA / "Odhiambo Washington" ... ]
[
SubCA/Intermedia-Cert with pound / "Jens ... ]
Rev Proxy based on Url
"zham rock" <zhamrock(at)gmail.com> |
2008-05-29 19:51:48 |
[ FULL ]
|
Hi - I just installed Pound and its working well with virtual hosts,
however, i'm planning to have a single domain which will redirect based from
the URL it matches and it will redirect to backend server with its full URL
and not just the server and port number.
I was able to do the below sample using apache + mod_proxy but not sure if
Pound can do that as well.
e.g.
www.mydomain.com/wiki should redirect and serve the content from
http://192.168.1.10:8080/wiki/index.php
www.mydomain.com/exchange should redirect to http://192.168.1.11/exchange
www.mydomain.com/myapp should redirect to
http://192.168.1.11/mynewapp/index.aspx
is it possible? if yes, can you help me with the config?
Regards'
zham
|
|
|
|
|
Re: [Pound Mailing List] Rev Proxy based on Url
Dave Steinberg <dave(at)redterror.net> |
2008-05-29 20:08:52 |
[ FULL ]
|
zham rock wrote:[...]
Definitely possible. You'll want to setup multiple 'Service' sections
in your config for each url that you want mapped in some way. So, roughly:
ListenHTTP
Address a.b.c.d
Port 80
Service "wiki"
URL "^/wiki"
Backend
....
End
end
Service "exchange"
URL "^/exchange"
Backend
...
end
end
...
end
Just add as many service directives as you want. Be sure to add one w/o
any 'URL' keyword to act as a default. The checks are made with a
first-match policy, so order matters.
Regards,[...]
|
|
|
Re: [Pound Mailing List] Rev Proxy based on Url
"zham rock" <zhamrock(at)gmail.com> |
2008-05-30 06:53:54 |
[ FULL ]
|
Re: [Pound Mailing List] Rev Proxy based on Url
Dave Steinberg <dave(at)redterror.net> |
2008-05-30 14:47:54 |
[ FULL ]
|
zham rock wrote:[...]
In pound, each service section has its own backend definitions. So if
you want /wiki to go to 192.168.1.11, just define that backend in your
service section:
Service
...
URL "^/wiki"
Backend
Address 192.168.1.11
Port 80
End
end
Do that for each url you want to have special treatment. Note that
pound does not strip the path of the url, so in the above 192.168.1.11
would see a request for "/wiki".
Why don't you try making a config and testing it to get a handle on the
behavior? Then we can talk about what didn't work that you expected to
go another way based on your config.
Regards,[...]
|
|
|
Re: [Pound Mailing List] Rev Proxy based on Url
"zham rock" <zhamrock(at)gmail.com> |
2008-05-31 14:27:30 |
[ FULL ]
|
Re: [Pound Mailing List] Rev Proxy based on Url
"zham rock" <zhamrock(at)gmail.com> |
2008-05-31 19:01:29 |
[ FULL ]
|
Hi Guys - can somebody tell if this is feasible?
Regards'
zham
On Sat, May 31, 2008 at 8:27 PM, zham rock <zhamrock(at)gmail.com> wrote:
[...]
|
|
|
|
|
Re: [Pound Mailing List] Rev Proxy based on Url
Ed R Zahurak <ezahurak(at)atlanticbb.net> |
2008-05-31 19:35:43 |
[ FULL ]
|
Yes, it is. Refer back in the archive a days, somebody already
explained how to do it.
zham rock wrote:[...][...]
>>> zham rock wrote:
>>>
>>>
>>>> Thanks - but how can i configure the backend? e.g. how do i
make sure it
>>>> goes to my backend http://192.168.1.11/wiki
>>>> <http://192.168.1.11/exchange>and
not to
>>>> http://192.168.1.11/exchange
>>>>
>>>>
>>> In pound, each service section has its own backend definitions.
So if
>>> [...]
>>> want /wiki to go to 192.168.1.11, just define that backend in your
>>> [...]
>>> section:
>>>
>>> Service
>>> ...
>>> URL "^/wiki"
>>> Backend
>>> Address 192.168.1.11
>>> Port 80
>>> End
>>> end
>>>
>>> Do that for each url you want to have special treatment. Note
that pound
>>> does not strip the path of the url, so in the above 192.168.1.11
would
>>> [...]
>>> a request for "/wiki".
>>>
>>> Why don't you try making a config and testing it to get a handle
on the
>>> behavior? Then we can talk about what didn't work that you
expected to
>>> [...]
>>> another way based on your config.
>>>
>>>
>>> Regards,
>>> --
>>> Dave Steinberg
>>> http://www.geekisp.com/
>>> http://www.steinbergcomputing.com/
>>>
>>> --
>>> To unsubscribe send an email with subject unsubscribe to
pound(at)apsis.ch.
>>> Please contact roseg(at)apsis.ch for questions.
>>>
>>> [...][...]
|
|
|
|
|
Re: [Pound Mailing List] Rev Proxy based on Url
"Simon Matter" <simon.matter(at)invoca.ch> |
2008-05-31 19:58:36 |
[ FULL ]
|
> Hi Guys - can somebody tell if this is feasible?
If I understand you correctly I think something like this should do it for
myapp1. Add more services accordingly. That way you could even send
requests for myapp2+3 to different backend servers if you like.
Service
Url "/myapp1/.*"
HeadRequire "Host:.*www.mydomain.com.*"
BackEnd
Address 192.168.1.11
Port 80
TimeOut 300
End
End
Maybe you want to try
Url "/myapp.*"
so that you need only ony service entry for all threee services.
Simon
[...][...][...]
|
|
|
|