<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;"><p>Hey,</p><p><br></p><p>I posted my vcl conf yesterday and still no response, is this forum active? shall I give up on varnish?</p><p><br></p><p>Anyone who can help me with the issue?</p><p><br></p><p> <br></p><br>--- Den <b>sön 2011-07-10 skrev Shibashish <i><shib4u@gmail.com></i></b>:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;">hey, here is my vcl file:<br><p>I commented out "sub vcl_fetch" because I got error while starting varnish.</p><p><br></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><br></p><p><br></p><blockquote class="yiv1027732664gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit;"><p>Hey guys,</p><p><br></p><p>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.<br><br></p><p>Thanks!</p></td></tr></tbody></table><br>_______________________________________________<br>
varnish-misc mailing list<br>
<a rel="nofollow" ymailto="mailto:varnish-misc@varnish-cache.org" target="_blank" href="/mc/compose?to=varnish-misc@varnish-cache.org">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><br></blockquote><div id="yiv1027732664"><div><div><br></div>Please post your vcl file.<div>
<br clear="all">ShiB.<br>while ( ! ( succeed = try() ) );<br></div></div>
</div></blockquote></td></tr></table>