Re: Rewrite domain.com to other domain.com/dir/subdir

2014-06-18 Thread Willy Tarreau
Hi Matt, [ please avoid top-posting, it's very unconvenient to reply with the context, rearranging your mail now ] On Wed, May 28, 2014 at 11:40:55PM +0200, Matt . wrote: 2014-05-28 23:28 GMT+02:00 Bryan Talbot bryan.tal...@playnext.com: The example in the reqirep section of the

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-28 Thread Bryan Talbot
On Wed, May 28, 2014 at 2:49 AM, Matt . yamakasi@gmail.com wrote: I'm still struggeling here and also looking at Varnish if it can accomplish it. What have you tried and what part of that is not working as you expect? I think HA proxy is the way as I also use it for normal

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-28 Thread Matt .
The normal redirect is working but convirt it to a rewrite is where I'm stuck. Should I use an ACL upfront that looks in the map and do an if on that or is the ACL not needed at all ? As I was busy too look how Varnish can accomplish this (using a MySQL Database) I need to check this again, but

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-28 Thread Bryan Talbot
On Wed, May 28, 2014 at 11:57 AM, Matt . yamakasi@gmail.com wrote: The normal redirect is working but convirt it to a rewrite is where I'm stuck. Should I use an ACL upfront that looks in the map and do an if on that or is the ACL not needed at all ? The example in the reqirep section

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-28 Thread Matt .
Hi Bryan, Yes I cam up to that part, but about the search in the map, do I need to do this twice ? 2014-05-28 23:28 GMT+02:00 Bryan Talbot bryan.tal...@playnext.com: On Wed, May 28, 2014 at 11:57 AM, Matt . yamakasi@gmail.com wrote: The normal redirect is working but convirt it to a

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-27 Thread Matt .
HI All, I have searched a lot abotu this and it's not clear to me. De we need to use ACL's in this matter or not. I can make a simple rewrite but its unclear to me how to use the lookup from a map(file). Any suggestions ? Thanks! Matt 2014-05-26 17:33 GMT+02:00 Matt .

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-26 Thread Baptiste
On Mon, May 26, 2014 at 4:15 PM, Matt . yamakasi@gmail.com wrote: Hi All, In order to my earlier topic about redirecting a domainname I actually want to rewrite one too. Let's says I have domainname2.com and I want to show domainname.com/dir/subdir under that domain, can this be done

Re: Rewrite domain.com to other domain.com/dir/subdir

2014-05-26 Thread Matt .
Hi Baptiste, OK, I also have seen examples (not for domains as I need them) that use ACL's in front. Waht do you think about that and can you give me some example ? It's kinda confusing what I found using google and mailinglists. Cheers, Matt 2014-05-26 17:22 GMT+02:00 Baptiste