Rewrite domain and keep subdomain

Matt . yamakasi.014 at gmail.com
Tue Aug 25 14:55:40 CEST 2015


Hi Dridi,

Indeed, that works, I never tested that was as I test real code on dev machines.

That works! but now it really rewrites, but the best would be to
redirect because of certificates that don't match.

I would make sure domain one is accessed @ port 80, redirected to
domain2 at 443 as it has a valid certificate.

That should be doable ?

Thanks!

Matt

2015-08-25 10:42 GMT+02:00 Dridi Boukelmoune <dridi at varni.sh>:
> Hi Matt,
>
> I believe that's what my example does. It is a test case, you can run
> it with varnishtest.
>
> Attached is the same test case, with a second client requesting the
> other domain.
>
> Dridi
>
> On Mon, Aug 24, 2015 at 11:27 AM, Matt . <yamakasi.014 at gmail.com> wrote:
>> Hi Dridi,
>>
>> I'm not 100% sure about the example.
>>
>> The idea is that when I have
>>
>> domain1.tld
>> domain2.tld
>>
>> acceces with subdomainX.domain1.tld or subdomainY.domain2.tld or
>> whatever.domain1.tld I set it in my vcl to
>>
>> TheVisitedSubdomain.mymaindomain.tld
>>
>> And use that one in my VLC...
>>
>> Thanks so far!
>>
>> Matt



More information about the varnish-misc mailing list