Hi Reinhard,<div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 17, 2012 at 8:11 AM, Reinhard Trompetter <span dir="ltr"><<a href="mailto:trompetter@titandsl.de" target="_blank">trompetter@titandsl.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
Is the following setup feasible (and if so, what would the VCL look like):<br>
<br>
1. "<a href="http://www.medmoodle.de" target="_blank">www.medmoodle.de</a>" (with public IP adress) from the internet to my router<br></blockquote><div><br></div><div>Yes. But this hasn't really much to do with Varnish. :-)</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
2. When a request is made to "<a href="http://www.medmoodle.de/moodle" target="_blank">www.medmoodle.de/moodle</a>" varnish sends the request to the url "<a href="http://www.medmoodle.de/moodle" target="_blank">www.medmoodle.de/moodle</a>" on private IP 192.168.1.x<br>
</blockquote><div><br></div><div>in vcl_recv:</div><div><br></div><div>if (req.url ~ "^/moodle") {</div><div> set req.backend = moodle;</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
3. When a request is made to "<a href="http://www.medmoodle.de/drupal" target="_blank">www.medmoodle.de/drupal</a>" varnish sends the request to the url "<a href="http://www.medmoodle.de/drupal" target="_blank">www.medmoodle.de/drupal</a>" on private IP 192.168.1.y<br>
</blockquote><div><br></div><div><br></div><div>} else if (req.url ~ "^/drupal") {</div><div> set req.backend = drupal;</div><div>} </div><div><br></div><div>You need to define two backends. Please see the tutorial or "man vcl" for information on how to do this.</div>
<div><br></div><div><br></div></div><div><br></div>-- <br><div style="font-size:12.727272033691406px;margin:5px 15px 0px 0px;padding-bottom:5px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">
<table border="0" cellpadding="0" cellspacing="0" style="text-align:start;font-size:12px;line-height:1.5em;font-family:'Helvetica Neue',Arial,sans-serif;color:rgb(102,102,102);width:550px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(238,238,238);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(238,238,238);margin-top:20px;padding-top:5px;padding-bottom:5px">
<tbody><tr><td width="100" style="font-family:arial,sans-serif;margin:0px"><a href="http://www.varnish-software.com/" style="color:rgb(17,85,204)" target="_blank"><img src="http://www.varnish-software.com/static/media/logo-email.png" style="float:left;margin-left:10px"></a></td>
<td style="font-family:arial,sans-serif;margin:0px"><b style="font-size:14px;color:rgb(34,34,34)">Per Buer</b><br>CEO | Varnish Software AS<br>Phone: +47 958 39 117 | Skype: per.buer<br><span style="font-weight:bold">We Make Websites Fly!<br>
<br></span></td></tr></tbody></table><div></div></div><div style="font-size:12.727272033691406px;margin:15px 0px;clear:both;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)"></div><br>
</div>