<div dir="ltr">Thank you for reply.<br>still the same issue.<br><br>one thing, is there any difference of the place of the rule?<br>because if i placed it directly after the declaration "sub vcl_recv {" it opens for me BUT after long loading and it doesn't open all the content of the page, without the CSS and images for example.<br>
and if i placed it just before the " return (lookup); }", the end of sub vcl_recv, it opens for once and next time it opens the default page without the URI, the same issue as before.<br><br>appropriated your help.<br>
<br>//JJ<br><br>
<br><br><div class="gmail_quote">On Tue, Jul 27, 2010 at 13:53, Flavio Torres <span dir="ltr"><<a href="mailto:fla_torres@yahoo.com.br">fla_torres@yahoo.com.br</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
Em 27/7/2010 06:54, Jerais Al-Jeraisy escreveu:<br>
<div class="im">> We have varnish-2.0.6 on CentOS 5.5 in front of Apache & drupal, and<br>
> we tried to map the domain ww.xx.yy.zz to a drupal URI, like<br>
> /websites/a/b/c, so any one can hit ww.xx.yy.zz directly insted of<br>
> wiritng ww.xx.yy.zz/websites/a/b/c.<br>
> it works fine for the first time, but the next time i hit the same<br>
> URL, it directs me to the main page of drupal, not to the URI, and i<br>
> should delete all my temp files to get it to work again.<br>
<br>
</div>Jerais,<br>
<br>
I think rewrite should be useful, try this:<br>
<br>
if (req.http.host ~ "^(www\.)?your\.domain\.com$") {<br>
set req.url = regsub(req.url, "^", "/websites/a/b/c");<br>
}<br>
<br>
<br>
regards,<br>
<br>
<br>
<br>
-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.8 (MingW32)<br>
<br>
iEYEARECAAYFAkxOusYACgkQNRQApncg295jDwCghEoqNx5OK4wjt4g8axxini++<br>
JGYAoMgax11t56NJFHY/frolqg97ZQUr<br>
=OwwC<br>
-----END PGP SIGNATURE-----<br>
<br>
<br>
</blockquote></div><br></div>