<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi!<br>
<br>
I would like to have one varnish server for multiple sites running
on multiple backends. <br>
<br>
For example:<br>
<br>
Domains: domain0.com, domain1.com .. domain9.com running on
backends: backendA, backendB.<br>
Domains: domain10.com, domain11.com .. domain19.com running on
backends: backendC, backendD.<br>
<br>
Is there any better way than:<br>
<br>
if (req.http.host ~
"(?i)domain0.com|(?i)domain1.com|(?i)domain2.com|(?i)domain3.com|(?i)domain4.com|(?i)domain5.com|(?i)domain6.com|(?i)domain7.com|(?i)domain8.com|(?i)domain9.com")
{<br>
set req.backend = backendAB_director<br>
}<br>
else....<br>
<br>
For example something like acl lists would be very helpful:<br>
<br>
XXX domainsAB {<br>
"(?i)domain0.com";<br>
"(?i)domain1.com";<br>
"(?i)domain2.com";<br>
"(?i)domain3.com";<br>
"(?i)domain4.com";<br>
"(?i)domain5.com";<br>
"(?i)domain6.com";<br>
"(?i)domain7.com";<br>
"(?i)domain8.com";<br>
"(?i)domain9.com";<br>
}<br>
<br>
if (req.http.host ~ domainsAB) {<br>
set req.backend = backendAB_director<br>
}<br>
<br>
Thanks,
<br>
Regards,
<br>
<br>
-- <br>
<div class="moz-signature"><span style="font-family: Arial; color:
rgb(105, 105, 105); font-weight: bold;">Gašper Furman<br>
<span style="font-size: 8pt; font-weight: lighter">Spletni
razvoj<br>
<span style="font-size: 8pt; font-weight: lighter">Web
Development<br>
<br>
Delo, d. d.<br>
Dunajska 5, 1000 Ljubljana<br>
T: +386 1 47 37 946<br>
E: <a href="mailto:gasper.furman@delo.si">gasper.furman@delo.si</a>
<br>
<br>
<a href="http://www.delo.si" target="_blank">
<img moz-do-not-send="false"
src="cid:part2.09010801.00080604@delo.si" border="0"></a>
<a href="http://www.slovenskenovice.si" target="_blank">
<img moz-do-not-send="false"
src="cid:part4.08040602.02090008@delo.si" border="0"></a>
<a href="http://www.deloindom.si" target="_blank">
<img moz-do-not-send="false"
src="cid:part6.09000707.06010006@delo.si" border="0"></a>
<a href="http://www.polet.si" target="_blank">
<img moz-do-not-send="false"
src="cid:part8.07050907.00000606@delo.si" border="0"></a>
<a href="http://www.pogledi.si" target="_blank">
<img moz-do-not-send="false"
src="cid:part10.04060002.00040903@delo.si" border="0"></a>
</span></span></span></div>
</body>
</html>