Re: [Pound Mailing List] infinite redirect loop

IbaSaW <[email protected]>
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
Thank you very much Tim

It works !


2014-03-14 12:52 GMT+01:00 Tim J. Rice <tim.j.rice-UJ0hKj9aD//[email protected]>:

> I typically do not use mod_rewrite (redirect rules) when I use a load
> balancer together.  Instead I just use pound to do all the redirecting.  I
> only see your mod_rewrite redirection.  If you are using pound and you want
> to redirect from the Load Balancer, do something like:
>
>         Service "Redirect to www.test.com"
>                 HeadRequire "(Host: test.com|Host:www.test.fr|Host:
> www.test.ch|Host:www.test.lu)"
>                 Redirect "http://www.test.com"
>                 Session
>                         Type IP
>                         TTL 120
>
>
>
>
>
> hi,
>
> i use pound + apache + proxmox
>
> i got a lot of domains for a single main domain name
>
> test.com www.test.fr test.fr www.test.ch www.test.lu ... => want to
> redirect 301 to www.test.com
>
> Got a redirect loop like this.
>
> my configuration worked fine without pound and without proxmox.
>
> But i need to redirect all domains with 301 to the main domain.
>
>
> i saw if i redirect a domain to my own server who got this domain on the
> server, there is the loop !
>
> But if i try to redirect the same domain on www.google.fr it works.
>
> there is a conflict in my configuration but i don't know where.
>
> <VirtualHost *:80>
>     Servername test.com
>     Serveralias test.fr www.test.fr ... ...
>
>     RewriteEngine on
>     RewriteRule ^(.*)$ http://www.test.com$1 [L,R=301]
> </VirtualHost>
>
> and in a htaccess
>
> RewriteEngine On
> RewriteBase /
> RewriteCond %{HTTP_HOST} .
> RewriteCond %{HTTP_HOST} !^www\.test\.com$
> RewriteRule ^(.*) http://www.test.com/$1 [R=301,L]
>
> RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
> RewriteRule ^index\.php$ http://www.test.com/ [R=301,L]
>
> How to solve this ?
>
>
> --
> IbaSaW
>
>


-- 
IbaSaW
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.