Rewrite domain and keep subdomain

Dridi Boukelmoune dridi at varni.sh
Tue Aug 25 10:42:22 CEST 2015


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: subdomain.vtc
Type: application/octet-stream
Size: 665 bytes
Desc: not available
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20150825/c73e5563/attachment.obj>


More information about the varnish-misc mailing list