So have something like this
set req.backend_hint = wpponline;
} else if (req.http.host ==
"<^(?=.*?\bsupport\b)(?=.*?\bwpponline\b)(?=.*?\bcom\b).*$>"){
set req.backend_hint = support;
I have a totally different backend that support.peg.com and I also have
www.peg.com<http://www.peg.com> and then I have a support.ncwrite.com and then
I also have www.ncwrite.com
From: Rodney Bizzell
Sent: Monday, March 27, 2017 1:42 PM
To: 'Matthew Blissett' <[email protected]>; [email protected]
Subject: RE: Domain
Also can I use regex to identify support.wpp.com. I have several support
backend servers that correlate to specific websites so say that I just wanted
to use the name instead of the IP?
From:
[email protected]<mailto:[email protected]>
[mailto:[email protected]] On Behalf
Of Matthew Blissett
Sent: Monday, March 27, 2017 1:05 PM
To: [email protected]<mailto:[email protected]>
Subject: Re: Domain
See
https://www.varnish-cache.org/docs/5.1/users-guide/vcl-backends.html#multiple-backends
Your backends might look like
backend www {
.host = "192.0.2.0";
.port = "80";
}
backend support {
.host = "192.0.2.1";
.port = "80";
}
The names are just labels.
To use backends like this, see
https://www.varnish-cache.org/docs/5.1/users-guide/vcl-backends.html#backends-and-virtual-hosts-in-varnish
Matt
On 27/03/17 16:32, Rodney Bizzell wrote:
Let me rephrase the question. I have a domain name
www.peg.com<http://www.peg.com> and then there is a support website called
support.peg.com. To create the backend server it doesn't allow for the period
is there a way to allow for this in the backend server name
This email (including any attachments) may contain confidential information
intended solely for acknowledged recipients. If you think you have received
this information in error, please reply to the sender and delete all copies
from your system. Please note that unauthorized use, disclosure, or further
distribution of this information is prohibited by the sender. Note also that we
may monitor email directed to or originating from our network. Thank you for
your consideration and assistance. |
_______________________________________________
varnish-misc mailing list
[email protected]<mailto:[email protected]>
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc
_______________________________________________
varnish-misc mailing list
[email protected]
https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc