<div dir="ltr">Hi Matt,<div><br></div><div>would something like that do:</div><div><br></div><div>sub vcl_recv {</div><div>    if (req.url ~ "^/js/") {</div><div>       set req.http.host  = "<span style="font-size:12.8px">subdomain.domain.tld</span>";</div><div>    }</div><div>}</div><div><br></div><div>?</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div>-- <br></div>Guillaume Quintard<br></div></div></div>
<br><div class="gmail_quote">On Sun, Jan 31, 2016 at 6:31 PM, Matt . <span dir="ltr"><<a href="mailto:yamakasi.014@gmail.com" target="_blank">yamakasi.014@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi All,<br>
<br>
I'm fuguring out how I can accomplish the following:<br>
<br>
I have subdomain.domain.tld but as this is a rewrite the olders like<br>
/js are not directly available on it.<br>
<br>
As my subdomains .domain.tld are dynamic I wonder if I can catch /js<br>
from reg.url for all incoming host(requests) and rewrite it to a<br>
source folder  on another host so it can be served on:<br>
<br>
subdomain.domain.tld/js<br>
<br>
My script lookups /js/whatever.js which is needed for these libs.<br>
<br>
Is there some catchall technique to accomplish this ?<br>
<br>
Thanks!<br>
<br>
Matt<br>
<br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" rel="noreferrer" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a><br>
</blockquote></div><br></div>