here is the header when I used wget:<br><br><div style="margin-left: 40px; color: rgb(204, 102, 0);"><span style="color: rgb(51, 51, 51);">front-end</span>: wget -S -O /dev/null <a href="http://myaddress/">http://myaddress/</a><br>
<br>HTTP request sent, awaiting response... <br>  HTTP/1.1 200 OK<br>  Server: Apache/2.2.3 (CentOS)<br>  X-Powered-By: PHP/5.2.10<br>  Set-Cookie: symfony=8nrdjbj0q3a5367cr3eg2u7po7; path=/<br>  Last-Modified: Mon, 27 Sep 2010 04:19:22 GMT<br>
  Cache-Control: max-age=0<br>  Expires: Mon, 27 Sep 2010 04:19:21 GMT<br>  Content-Type: text/html; charset=utf-8<br>  Content-Length: 63066<br>  Date: Mon, 27 Sep 2010 04:18:02 GMT<br>  X-Varnish: 153748005<br>  Age: 0<br>
  Via: 1.1 varnish<br>  Connection: keep-alive<br>Length: 63066 (62K) [text/html]<br>Saving to: `/dev/null'<br><br>100%[======================================>] 63,066      --.-K/s   in 0.1s    <br><br>2010-09-27 11:17:50 (577 KB/s) - `/dev/null' saved [63066/63066]<br>
<br><br><br></div><div style="margin-left: 40px; color: rgb(204, 102, 0);"><span style="color: rgb(0, 0, 0);">backend:</span> wget -S -O /dev/null <a href="http://myaddress/admin">http://myaddress/admin</a><br><br> wget -S -O /dev/null <a href="http://myaddress/admin">http://myaddress/admin</a><br>
--2010-09-27 11:18:35--  <a href="http://myaddress/admin">http://myaddress/admin</a><br>Connecting to myaddress:80... connected.<br>HTTP request sent, awaiting response... <br>  HTTP/1.1 302 Found<br>  Server: Apache/2.2.3 (CentOS)<br>
  X-Powered-By: PHP/5.2.10<br>  Set-Cookie: symfony=lli9m9oog3flp23ggchhbt5s71; path=/<br>  Location: <a href="http://myaddress:8080/admin.php">http://myaddress:8080/admin.php</a><br>  Cache-Control: max-age=0<br>  Expires: Mon, 27 Sep 2010 04:20:08 GMT<br>
  Content-Type: text/html; charset=utf-8<br>  Content-Length: 106<br>  Date: Mon, 27 Sep 2010 04:18:48 GMT<br>  X-Varnish: 153748006<br>  Age: 0<br>  Via: 1.1 varnish<br>  Connection: keep-alive<br>Location: <a href="http://myaddress:8080/admin.php">http://myaddress:8080/admin.php</a> [following]<br>
--2010-09-27 11:18:35--  <a href="http://myaddress:8080/admin.php">http://myaddress:8080/admin.php</a><br>Connecting to myaddress:8080... failed: No route to host.<br></div>          <br>I saw 302 found but I don't know what can I do then. 8080, here's the backend-port.<br>
<br>Thanks and regards.<br><br><br>
<div class="gmail_quote"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hmm. Can you provide the headers of one of the URLs you're testing, with<br>

as little anonymisation as possible? e.g. using<br>
<br>
  wget -S -O /dev/null <a href="http://www.example.com/" target="_blank">http://www.example.com/</a><br>
<br>
Is it possible that your test URL is already cached by Varnish?<br>
vcl_fetch() is only called when the resource was fetched from the<br>
backend, so if it was already cached by Varnish that code will never be<br>
called. Either purge the URL or add similar code in vcl_hit().<br>
<div><div></div><div class="h5"><br>
_______________________________________________<br>
varnish-misc mailing list<br>
<a href="mailto:varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>
<a href="http://lists.varnish-cache.org/mailman/listinfo/varnish-misc" target="_blank">http://lists.varnish-cache.org/mailman/listinfo/varnish-misc</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Nguyen Dang Tung<br>