Rewrite domain and keep subdomain
yamakasi.014 at gmail.com
Mon Aug 24 11:27:56 CEST 2015
I'm not 100% sure about the example.
The idea is that when I have
acceces with subdomainX.domain1.tld or subdomainY.domain2.tld or
whatever.domain1.tld I set it in my vcl to
And use that one in my VLC...
Thanks so far!
2015-08-24 9:59 GMT+02:00 Dridi Boukelmoune <dridi at varni.sh>:
> On Mon, Aug 24, 2015 at 1:41 AM, Matt . <yamakasi.014 at gmail.com> wrote:
>> Hi Guys,
>> I'm figuring out how I can rewrite a domain in a req.http.Host
>> Like I type in my addressbar: subdomain.myFIRSTdomain.tld
>> Where Varnish needs to catch this using req.http.Host filter out the
>> domainname and make req.http.Host actually:
>> I'm figuring out how to do so, but I can't find the right way/docs.
> Hi Matt,
> This can be achieved with a regular expression, please find enclosed a
> test case demonstrating how to do that.
> Best Regards,
>> I hope someone can help me out !
>> varnish-misc mailing list
>> varnish-misc at varnish-cache.org
More information about the varnish-misc