<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><p>Thanks for your response!</p><p><br></p><p>I put this code in vcl file and even tried to use it as else but it didn't solve the probelm,<br></p><p><br></p><p>
<p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">sub vcl_recv {<br>  set req.http.X-Orig-Forwarded-For = client.ip;<br>  if (req.url ~ "\.(jpe?g|png|gif|ico|js|css|zip|CSS|mp3|wma|wmv|avi)(\?.*|)$") { <br>    unset req.http.cookie;<br>  }</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US"> #### backend definition for this request####</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">  set req.backend = default;<br>}</span></p>and </p><p><br></p><p>
<p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">sub vcl_recv {<br>  set req.http.X-Orig-Forwarded-For = client.ip;<br>  if (req.url ~ "\.(jpe?g|png|gif|ico|js|css|zip|CSS|mp3|wma|wmv|avi)(\?.*|)$") { <br>    unset req.http.cookie;<br>  } else{</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US"> #### backend definition for this request####</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">  set req.backend = default;<br></span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">}<br></span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">}</span></p></p><p>There is nothing in nginx error file, and before I put nginx behinde the varnish it worked perfectly.</p><p><br></p><p>the request for mysite.com/blog is send to nginx and nginx send it to
 port 81 and i've blocked this port in fireall.</p><p><br></p><p>nginx port config is 127.0.0.1:81; is there anything more we need to change in nginx?</p><p><br></p><p>I have been trying to write a "URLfix" for the vcl_rcv to make varnish understand thattt</p><p><br></p><p>mysite.com/*   =   mysite.com/*/   =   mysite.com/*/index.php</p><p><br></p><p>* = a name without any extension, altså it's not a file but the name of directory.</p><p><br></p><p>Thanks,</p><p><br></p><p><br></p><p><br></p>--- Den <b>tis 2011-07-12 skrev juan.salinas@mercurio.cl <i><juan.salinas@mercurio.cl></i></b>:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br><br><div id="yiv789301279"><style><!--
#yiv789301279  
 _filtered #yiv789301279 {font-family:"Cambria Math";panose-1:2 4 5 3 5 4 6 3 2 4;}
 _filtered #yiv789301279 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv789301279 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv789301279  
#yiv789301279 p.yiv789301279MsoNormal, #yiv789301279 li.yiv789301279MsoNormal, #yiv789301279 div.yiv789301279MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
#yiv789301279 a:link, #yiv789301279 span.yiv789301279MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv789301279 a:visited, #yiv789301279 span.yiv789301279MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv789301279 p
        {margin-right:0cm;margin-left:0cm;font-size:12.0pt;font-family:"serif";}
#yiv789301279 span.yiv789301279EstiloCorreo18
        {font-family:"sans-serif";color:#1F497D;}
#yiv789301279 .yiv789301279MsoChpDefault
        {}
 _filtered #yiv789301279 {margin:70.85pt 3.0cm 70.85pt 3.0cm;}
#yiv789301279 div.yiv789301279WordSection1
        {}
--></style><div class="yiv789301279WordSection1"><p class="yiv789301279MsoNormal"><span lang="EN-US" style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>It could have been you didn’t define the backend for the request in sub vcl_recv:</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">sub vcl_recv {<br>  set req.http.X-Orig-Forwarded-For = client.ip;<br>  if (req.url ~ "\.(jpe?g|png|gif|ico|js|css|zip|CSS|mp3|wma|wmv|avi)(\?.*|)$") { <br>    unset req.http.cookie;<br>  }</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US"> #### backend definition for this request####</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US">  set req.backend = default;<br>}</span></p><p class="yiv789301279MsoNormal" style="margin-left:35.4pt;"><span lang="EN-US"
 style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>  </span></p><p class="yiv789301279MsoNormal"><span lang="EN-US" style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>Juan Salinas Contreras</span></p><p class="yiv789301279MsoNormal"><span lang="EN-US" style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>  </span></p><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="yiv789301279MsoNormal"><b><span lang="ES" style='font-size:10.0pt;font-family:"sans-serif";'>De:</span></b><span lang="ES" style='font-size:10.0pt;font-family:"sans-serif";'> varnish-misc-bounces@varnish-cache.org [mailto:varnish-misc-bounces@varnish-cache.org] <b>En nombre de </b>Your Friend<br><b>Enviado el:</b> domingo, 10 de julio de 2011 9:38<br><b>Para:</b> Shibashish<br><b>CC:</b> varnish-misc@varnish-cache.org<br><b>Asunto:</b> Re: Problem with Varnish.</span></p></div><p
 class="yiv789301279MsoNormal">  </p><table class="yiv789301279MsoNormalTable" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td valign="top" style="padding:0cm 0cm 0cm 0cm;"><p>hey, here is my vcl file:</p><p>  </p><p>I commented out "sub vcl_fetch" because I got error while starting varnish. </p><p>  </p><p>backend default {<br>.host = "127.0.0.1";<br>  .port = "81";<br>}<br>sub vcl_recv {<br># add a unique header containing the client IP address<br>set req.http.X-Orig-Forwarded-For = client.ip;<br><br># we're only handling static content for now so remove any<br># Cookie that was sent in the request as that makes caching<br># impossible.<br>if (req.url ~ "\.(jpe?g|png|gif|ico|js|css|zip|CSS|mp3|wma|wmv|avi)(\?.*|)$") {<br>unset req.http.cookie;<br>}<br>}<br><br>#sub vcl_fetch {<br># if the backend server adds a cookie to all responses,<br># remove it from static content so that it can be cached.<br># if (req.url ~
 "\.(jpe?g|png|gif|ico|js|css|zip|CSS|mp3|wma|wmv|avi)(\?.*|)$") {<br># unset obj.http.set-cookie;<br># }<br>#}</p><p>  </p><p style="margin-bottom:12.0pt;">  </p><p class="yiv789301279MsoNormal"><br>--- Den <b>sön 2011-07-10 skrev Shibashish <i><shib4u@gmail.com></i></b>:</p><p class="yiv789301279MsoNormal"><br>Hey guys,</p><div id="yiv789301279"><div><div><blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0cm 0cm 0cm 6.0pt;margin-left:4.8pt;margin-right:0cm;"><table class="yiv789301279MsoNormalTable" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td valign="top" style="padding:0cm 0cm 0cm 0cm;"><p>  </p><p style="margin-bottom:12.0pt;">I am fairly new to the Varnish, I installed Varnish as the frontend to nginx, everything works fine föruton a strange problem that I have never encountered before when I used only the nginx;<br><br>I have an index page that links to the archives of this dress in two
 different ways:<br>Link 1:<br><a rel="nofollow" target="_blank" href="http://website.com/blog/archive/index.php">website.com/blog/archive/index.php</a><br>Link 2:<br><a rel="nofollow" target="_blank" href="http://website.com/blog/archive/">website.com/blog/archive/</a><br><br>Here comes the problem, with Varnish does not link two work, the browser simply can not access the page and after a few seconds, nothing appears in the browser and the address bar shows the address that a page can not be reached, the address that appears in the address bar is:<br><br>website.com:beckendport/blog/archive/<br><br>Configuration of the Web server is 127.0.0.1:beckendport and Varnish 80.<br><br>I don't use htaccess.<br><br>I would be grateful if you help me with this problem.</p><p>Thanks!</p></td></tr></tbody></table><p class="yiv789301279MsoNormal"><br>_______________________________________________<br>varnish-misc mailing list<br><a
 rel="nofollow">varnish-misc@varnish-cache.org</a><br><a rel="nofollow" target="_blank" href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></p></blockquote></div><div><p class="yiv789301279MsoNormal">  </p></div><p class="yiv789301279MsoNormal">Please post your vcl file.</p><div><p class="yiv789301279MsoNormal"><br clear="all">ShiB.<br>while ( ! ( succeed = try() ) );</p></div></div></div></td></tr></tbody></table><p class="yiv789301279MsoNormal"><span style='font-size:10.0pt;font-family:"sans-serif";'>  </span></p></div></div></blockquote></td></tr></table>