/ Zope / Apsis / Pound Mailing List / Archive / 2007 / 2007-04 / pund redirect or url-rewrite

[ << ] [ >> ]

[ HAPort daemon / Steve <spm(at)fostam.franken.de... ] [ pound success stories / Jimmy Brake ... ]

pund redirect or url-rewrite
Francesco Lunelli <francesco.l(at)ymir.it>
2007-04-11 11:34:37 [ FULL ]
I am developing websites using rails and Mongrel as webserver, with
Pound in front of everything.
Now I have to develop a multilanguage site, so I nedd to send all
request with "/eng/" appended to the url to a different backend and
remove the "/eng/" part of the url.
For example:

Service
    HeadRequire "Host:.*www.mysite.it.*"
    BackEnd
        Address 127.0.0.1
        Port    8001
    End
...
End

Service
    HeadRequire "Host:.*www.mysite.it.*"
        URL       "/eng/*"
    BackEnd
        Address 127.0.0.1
        Port    8005
    End
...
End

What I need is to send request to the backend on port 8005 removing the
"/eng/" part of the url.
I tried the way above and I tried using redirect too, but I can't figure
how remove that piece of url.
Thanks in advance
[...]

Re: [Pound Mailing List] pund redirect or url-rewrite
Stefan Lambrev <stefan.lambrev(at)sun-fish.com>
2007-04-11 11:55:57 [ FULL ]
Francesco Lunelli wrote:[...]
If you use apache as backend you can specify "Alias /eng/ /" this works 
for me :)

Re: [Pound Mailing List] pund redirect or url-rewrite
Robert Segall <roseg(at)apsis.ch>
2007-04-11 12:08:26 [ FULL ]
On Wed, 2007-04-11 at 11:34 +0200, Francesco Lunelli wrote:[...]

Pound does not change the URL. Do the rewriting/aliasing on your
back-end.[...]

MailBoxer