<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Thank you to everyone, and especially Stephen Gazard - you were right, the problem was that Apache was set to use *:8080, and was solved when I specified that Apache should use 127.0.0.1:80.<br><br>A final quick note for future users who might read this: remember to also clear your _browser_ cache when testing any changes you've made. Had me puzzled for a bit.<br><br>And again, thanks!<br><br>--- On <b>Mon, 25/3/13, varnish-misc-request@varnish-cache.org <i><varnish-misc-request@varnish-cache.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: varnish-misc-request@varnish-cache.org <varnish-misc-request@varnish-cache.org><br>Subject: varnish-misc Digest, Vol 84, Issue 26<br>To: varnish-misc@varnish-cache.org<br>Date: Monday, 25 March, 2013, 19:00<br><br><div
 class="plainMail">Send varnish-misc mailing list submissions to<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><br>To subscribe or unsubscribe via the World Wide Web, visit<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><br>or, via email, send a message with subject or body 'help' to<br>    <a ymailto="mailto:varnish-misc-request@varnish-cache.org" href="/mc/compose?to=varnish-misc-request@varnish-cache.org">varnish-misc-request@varnish-cache.org</a><br><br>You can reach the person managing the list at<br>    <a ymailto="mailto:varnish-misc-owner@varnish-cache.org" href="/mc/compose?to=varnish-misc-owner@varnish-cache.org">varnish-misc-owner@varnish-cache.org</a><br><br>When
 replying, please edit your Subject line so it is more specific<br>than "Re: Contents of varnish-misc digest..."<br><br><br>Today's Topics:<br><br>   1. Re: Varnish 3.0.3 - segfault in libvarnish.so. (Rafa? Radecki)<br>   2. All calls redirecting to backend port (Mike Noren)<br>   3. RE: All calls redirecting to backend port (Rangel, Raul)<br>   4. RE: All calls redirecting to backend port (Stephen Gazard)<br><br><br>----------------------------------------------------------------------<br><br>Message: 1<br>Date: Mon, 25 Mar 2013 12:00:15 +0100<br>From: Rafa? Radecki <<a ymailto="mailto:radecki.rafal@gmail.com" href="/mc/compose?to=radecki.rafal@gmail.com">radecki.rafal@gmail.com</a>><br>To: Lasse Karstensen <<a ymailto="mailto:lkarsten@varnish-software.com" href="/mc/compose?to=lkarsten@varnish-software.com">lkarsten@varnish-software.com</a>><br>Cc: <a
 ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>Subject: Re: Varnish 3.0.3 - segfault in libvarnish.so.<br>Message-ID:<br>    <CAHd9_iTZ_p2k8ZQN6sf=sV5C4tKfSg0bNn64OsNw986q=<a ymailto="mailto:kXgfA@mail.gmail.com" href="/mc/compose?to=kXgfA@mail.gmail.com">kXgfA@mail.gmail.com</a>><br>Content-Type: text/plain; charset=ISO-8859-2<br><br>Hi.<br><br>I've added a ticket: <a href="https://www.varnish-cache.org/trac/ticket/1287" target="_blank">https://www.varnish-cache.org/trac/ticket/1287</a> .<br><br>Best regards,<br>Rafal.<br><br>2013/3/23 Lasse Karstensen <<a ymailto="mailto:lkarsten@varnish-software.com" href="/mc/compose?to=lkarsten@varnish-software.com">lkarsten@varnish-software.com</a>>:<br>> On Fri, Mar 22, 2013 at 11:56:48AM +0100, Rafa? Radecki wrote:<br>>> I use varnish 3.0.3 on my production server:<br>>
 [..]<br>>> Mar 22 09:00:07 server.local kernel: : varnishd[2085]: segfault at 0<br>>> ip 0000003f60c0c234 sp 00007fa9217cc2e0 error 4 in<br>>> libvarnish.so[3f60c00000+13000]<br>><br>> This should never happen and may require a bit of effort to figure out.<br>><br>> Please file a bug report on this in the main bugtracker:<br>><br>>         <a href="https://www.varnish-cache.org/trac/" target="_blank">https://www.varnish-cache.org/trac/</a><br>><br>> --<br>> With regards,<br>> Lasse Karstensen<br>> Varnish Software AS<br><br><br><br>------------------------------<br><br>Message: 2<br>Date: Mon, 25 Mar 2013 17:07:04 +0000 (GMT)<br>From: Mike Noren <<a ymailto="mailto:mike_noren2002@yahoo.co.uk" href="/mc/compose?to=mike_noren2002@yahoo.co.uk">mike_noren2002@yahoo.co.uk</a>><br>To: <a ymailto="mailto:varnish-misc@varnish-cache.org"
 href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>Subject: All calls redirecting to backend port<br>Message-ID:<br>    <<a ymailto="mailto:1364231224.48157.YahooMailClassic@web172306.mail.ir2.yahoo.com" href="/mc/compose?to=1364231224.48157.YahooMailClassic@web172306.mail.ir2.yahoo.com">1364231224.48157.YahooMailClassic@web172306.mail.ir2.yahoo.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello all,<br>I'm completely new to Varnish, if this is a silly question I apologize and ask to please be directed to a newbie forum.<br><br>Anyway, I've a LAMP server on which I'm testing Varnish. Apache is set to port 8008 in ports-conf and 000-default, Varnish is set to listen on port 80 in /etc/default/varnish and told that the backend is on port 8008 in default.vcl. <br><br>Everything seems to be working, Varnishhist and Live Headers confirm that Varnish is caching the frontpage, but
 clicking on any link redirects the URL to the backend port, bypassing Varnish. <br>E.g. clicking on link from the front page to <a href="http://www.mysite.com/mypage.php?item=1234" target="_blank">http://www.mysite.com/mypage.php?item=1234</a> sends the browser to <a href="http://www.mysite.com:8008/mypage.php?item=1234" target="_blank">http://www.mysite.com:8008/mypage.php?item=1234</a>. <br>If I manually enter the URL in the browser without the port number then the page loads through Varnish just fine, but clicking any link automatically appends the port number.<br><br>I assume this is a configuration error, any ideas what's going on and how I can fix it?<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130325/32dbd6e5/attachment-0001.html"
 target="_blank">https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130325/32dbd6e5/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 3<br>Date: Mon, 25 Mar 2013 10:41:43 -0700<br>From: "Rangel, Raul" <<a ymailto="mailto:Raul.Rangel@disney.com" href="/mc/compose?to=Raul.Rangel@disney.com">Raul.Rangel@disney.com</a>><br>To: "'Mike Noren'" <<a ymailto="mailto:mike_noren2002@yahoo.co.uk" href="/mc/compose?to=mike_noren2002@yahoo.co.uk">mike_noren2002@yahoo.co.uk</a>>,<br>    "'<a ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a>'" <<a ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a>><br>Subject: RE: All calls redirecting to backend port<br>Message-ID:<br>    <<a
 ymailto="mailto:2465AAEEC8B8A242B26ED5F44BCA805F2610319D55@SM-CALA-VXMB04A.swna.wdpr.disney.com" href="/mc/compose?to=2465AAEEC8B8A242B26ED5F44BCA805F2610319D55@SM-CALA-VXMB04A.swna.wdpr.disney.com">2465AAEEC8B8A242B26ED5F44BCA805F2610319D55@SM-CALA-VXMB04A.swna.wdpr.disney.com</a>><br>    <br>Content-Type: text/plain; charset="utf-8"<br><br>You need to make sure your application support being behind a reverse proxy. Two solutions I can think of to your problem are 1) Make all urls relative. i.e) /mypage.php?item=1234 instead of using the full url. 2) Have varnish append a X-Forwarded-Host header in vcl_recv. Then make your app use that as the host for the urls.<br><br>Raul<br><br>From: <a ymailto="mailto:varnish-misc-bounces@varnish-cache.org" href="/mc/compose?to=varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a> [mailto:<a ymailto="mailto:varnish-misc-bounces@varnish-cache.org"
 href="/mc/compose?to=varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a>] On Behalf Of Mike Noren<br>Sent: Monday, March 25, 2013 11:07 AM<br>To: <a ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><br>Subject: All calls redirecting to backend port<br><br>Hello all,<br>I'm completely new to Varnish, if this is a silly question I apologize and ask to please be directed to a newbie forum.<br><br>Anyway, I've a LAMP server on which I'm testing Varnish. Apache is set to port 8008 in ports-conf and 000-default, Varnish is set to listen on port 80 in /etc/default/varnish and told that the backend is on port 8008 in default.vcl.<br><br>Everything seems to be working, Varnishhist and Live Headers confirm that Varnish is caching the frontpage, but clicking on any link redirects the URL to the backend port, bypassing Varnish.<br>E.g. clicking on
 link from the front page to <a href="http://www.mysite.com/mypage.php?item=1234" target="_blank">http://www.mysite.com/mypage.php?item=1234</a> sends the browser to <a href="http://www.mysite.com:8008/mypage.php?item=1234" target="_blank">http://www.mysite.com:8008/mypage.php?item=1234</a>.<br>If I manually enter the URL in the browser without the port number then the page loads through Varnish just fine, but clicking any link automatically appends the port number.<br><br>I assume this is a configuration error, any ideas what's going on and how I can fix it?<br><br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130325/cd198e59/attachment-0001.html"
 target="_blank">https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130325/cd198e59/attachment-0001.html</a>><br><br>------------------------------<br><br>Message: 4<br>Date: Mon, 25 Mar 2013 18:00:05 +0000<br>From: Stephen Gazard <<a ymailto="mailto:StephenG@glam.com" href="/mc/compose?to=StephenG@glam.com">StephenG@glam.com</a>><br>To: "'<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 ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a>><br>Subject: RE: All calls redirecting to backend port<br>Message-ID:<br>    <<a ymailto="mailto:D19C0500E58C3F42B2C121A7BDABB730521AA3CD@gmmxmb03z03.projecty.com"
 href="/mc/compose?to=D19C0500E58C3F42B2C121A7BDABB730521AA3CD@gmmxmb03z03.projecty.com">D19C0500E58C3F42B2C121A7BDABB730521AA3CD@gmmxmb03z03.projecty.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>Hello,<br><br>From: <a ymailto="mailto:varnish-misc-bounces@varnish-cache.org" href="/mc/compose?to=varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a><mailto:<a ymailto="mailto:varnish-misc-bounces@varnish-cache.org" href="/mc/compose?to=varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a>> [mailto:<a ymailto="mailto:varnish-misc-bounces@varnish-cache.org" href="/mc/compose?to=varnish-misc-bounces@varnish-cache.org">varnish-misc-bounces@varnish-cache.org</a>] On Behalf Of Mike Noren<br>Sent: Monday, March 25, 2013 11:07 AM<br>To: <a ymailto="mailto:varnish-misc@varnish-cache.org"
 href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a><mailto:<a ymailto="mailto:varnish-misc@varnish-cache.org" href="/mc/compose?to=varnish-misc@varnish-cache.org">varnish-misc@varnish-cache.org</a>><br>Subject: All calls redirecting to backend port<br><br>Hello all,<br>I'm completely new to Varnish, if this is a silly question I apologize and ask to please be directed to a newbie forum.<br><br>Anyway, I've a LAMP server on which I'm testing Varnish. Apache is set to port 8008 in ports-conf and 000-default, Varnish is set to listen on port 80 in /etc/default/varnish and told that the backend is on port 8008 in default.vcl.<br><br>Everything seems to be working, Varnishhist and Live Headers confirm that Varnish is caching the frontpage, but clicking on any link redirects the URL to the backend port, bypassing Varnish.<br>E.g. clicking on link from the front page to <a
 href="http://www.mysite.com/mypage.php?item=1234" target="_blank">http://www.mysite.com/mypage.php?item=1234</a> sends the browser to <a href="http://www.mysite.com:8008/mypage.php?item=1234" target="_blank">http://www.mysite.com:8008/mypage.php?item=1234</a>.<br>If I manually enter the URL in the browser without the port number then the page loads through Varnish just fine, but clicking any link automatically appends the port number.<br><br>I assume this is a configuration error, any ideas what's going on and how I can fix it?<br>It?s a server configuration error.  Assuming varnish & apache are on the same server<br><br>-          varnish listening on the public IP address port 80<br><br>-          apache listening on 127.0.0.1 on port 80.  If it?s on a separate server, modify Apache to listen on port 80 on the secondary server?s IP<br>Otherwise you get apache serving links via Varnish and
 it will put the non-standard port it thinks it sits on.<br><br>See <a href="http://ocaoimh.ie/2011/08/09/speed-up-wordpress-with-apache-and-varnish/" target="_blank">http://ocaoimh.ie/2011/08/09/speed-up-wordpress-with-apache-and-varnish/</a><br><br>Regards,<br>Stephen<br><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <<a href="https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130325/60353360/attachment.html" target="_blank">https://www.varnish-cache.org/lists/pipermail/varnish-misc/attachments/20130325/60353360/attachment.html</a>><br><br>------------------------------<br><br>_______________________________________________<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><br><br>End of varnish-misc Digest, Vol 84, Issue 26<br>********************************************<br></div></blockquote></td></tr></table>