configuration-templates – Diff between revs 47 and 48
?pathlinks?
Rev 47 | Rev 48 | |||
---|---|---|---|---|
Line 66... | Line 66... | |||
66 | ## Suppose that you have multiple backends (configured at the top of this file) that route to |
66 | ## Suppose that you have multiple backends (configured at the top of this file) that route to |
|
67 | ## diferent backends that also have different websites. |
67 | ## diferent backends that also have different websites. |
|
68 | ## In that scenario you would want to, say: |
68 | ## In that scenario you would want to, say: |
|
69 | ## * route example1.tld or www.example1.tld to the server1 (192.168.0.10) backend |
69 | ## * route example1.tld or www.example1.tld to the server1 (192.168.0.10) backend |
|
70 | ## * route example2.tld or www.example2.tld to the server2 (192.168.0.20) backend |
70 | ## * route example2.tld or www.example2.tld to the server2 (192.168.0.20) backend |
|
71 | ## |
- | ||
72 | #if (req.http.host ~ "^(.*\.)?example1\.com$") { |
71 | #if (req.http.host ~ "^(.*\.)?example1\.com$") { |
|
73 | # set req.backend_hint = server1; |
72 | # set req.backend_hint = server1; |
|
74 | # return (hash); |
73 | # return (hash); |
|
75 | #} |
74 | #} |
|
76 | #if (req.http.host ~ "^(.*\.)?example2\.com$") { |
75 | #if (req.http.host ~ "^(.*\.)?example2\.com$") { |