Domain

Rodney Bizzell rbizzell at measinc.com
Mon Mar 27 19:43:23 CEST 2017


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' <mblissett at gbif.org>; varnish-misc at varnish-cache.org
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: varnish-misc-bounces+rbizzell=measinc.com at varnish-cache.org<mailto:varnish-misc-bounces+rbizzell=measinc.com at varnish-cache.org> [mailto:varnish-misc-bounces+rbizzell=measinc.com at varnish-cache.org] On Behalf Of Matthew Blissett
Sent: Monday, March 27, 2017 1:05 PM
To: varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>
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

varnish-misc at varnish-cache.org<mailto:varnish-misc at varnish-cache.org>

https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20170327/0f8fbad6/attachment-0001.html>


More information about the varnish-misc mailing list