<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><p>Hey,</p><p><br></p><p>Thanks for your response. </p><p><br></p><p>The version of Varnish is 2.1.3-8, latest stable version for Debian, I used APT.<br></p><p><br></p><p>I tried to run varnishlog, than I clicked on the link 2, a few second later I got kicked out of server (ssh)!</p><p><br></p><p>I think it's more like some security issue, I also checked server logs, I know it's firewall disconnecting client. But only if I use Link 2. maybe I wrote someting wrong in the conf file?</p><p><br></p><p><br></p><br>--- Den <b>mån 2011-07-11 skrev Traian Bratucu <i><traian.bratucu@eea.europa.eu></i></b>:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>Hello,</span><div id="yiv1658931060"><div class="yiv1658931060WordSection1"><p
class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'> </span></p><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>From what I can see, your problem might not be with varnish. As far as i know, varnish would return a 503 error on backend failure, you would never get redirected to website.com:backendport, as you say it is happening to you.</span></p><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'> </span></p><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>Please try to use the command “varnishlog” to see exactly what is happening to the request. Also, posting which version of varnish (2.x or 3) you are using might also help.</span></p><p class="yiv1658931060MsoNormal"><span
style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'> </span></p><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>Regards,</span></p><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'>Traian</span></p><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'> </span></p><div style="border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt;"><div><div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm;"><p class="yiv1658931060MsoNormal">Hey,</p></div></div><table class="yiv1658931060MsoNormalTable" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td valign="top" style="padding:0cm 0cm 0cm 0cm;"><p> </p><p>I posted my vcl conf yesterday and still no response, is this forum active? shall I give up on varnish?</p><p>
</p><p>Anyone who can help me with the issue?</p><p> </p><p> </p><p class="yiv1658931060MsoNormal"><br>--- Den <b>sön 2011-07-10 skrev Shibashish <i><<a rel="nofollow" ymailto="mailto:shib4u@gmail.com" target="_blank" href="/mc/compose?to=shib4u@gmail.com">shib4u@gmail.com</a>></i></b>:</p><p class="yiv1658931060MsoNormal">hey, here is my vcl file:</p><p>I commented out "sub vcl_fetch" because I got error while starting varnish.</p><p> </p><p class="yiv1658931060MsoNormal">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># }</p><p>#}</p><p> </p><p> </p><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="yiv1658931060MsoNormalTable" border="0" cellspacing="0" cellpadding="0"><tbody><tr><td valign="top" style="padding:0cm 0cm 0cm 0cm;"><p>Hey guys,</p><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="yiv1658931060MsoNormal"><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 id="yiv1658931060"><div><div><p class="yiv1658931060MsoNormal"> </p></div><p class="yiv1658931060MsoNormal">Please post your vcl file.</p><div><p class="yiv1658931060MsoNormal"><br clear="all">ShiB.<br>while ( ! ( succeed = try() ) );</p></div></div></div></td></tr></tbody></table><p class="yiv1658931060MsoNormal"><span style='font-size:11.0pt;font-family:"sans-serif";color:#1F497D;'> </span></p></div></div></div><br>-----Infogad bilaga följer-----<br><br><div class="plainMail">_______________________________________________<br>varnish-misc mailing list<br><a ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br><a
href="https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc" target="_blank">https://www.varnish-cache.org/lists/mailman/listinfo/varnish-misc</a></div></blockquote></td></tr></table>