From bjsamuels@beenthere-donethat.org.uk Wed Nov 16 11:49:31 2011 From: Barry Samuels To: main@lists.alug.org.uk Subject: [ALUG] Apache2 magic Date: Wed, 16 Nov 2011 11:49:30 +0000 Message-ID: <1321444170.15416.0@dataman1> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8112753779049711662==" --===============8112753779049711662== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit I have set up a second virtual site on my computer so that I can use www2 instead of www because that's already used and I want to keep it separate. I have a very simple html page in www2 and this is the exact code: 6 Hour Live data usage Notice the meta tag in the header which refreshes the page every 10 seconds. If I access this page with a web browser as a file i.e. file/// it works as expected, although I have to change the src= path to include / var/www2, but if I access it using http:// it doesn't update and if I use 'view/page source' I see that: has been replaced with: Why should that happen? -- Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain --===============8112753779049711662==-- From richardlewis@fastmail.co.uk Wed Nov 16 23:37:42 2011 From: Richard Lewis To: main@lists.alug.org.uk Subject: Re: [ALUG] Apache2 magic Date: Wed, 16 Nov 2011 23:22:07 +0000 Message-ID: <87ipmjsleo.wl%richard.lewis@gold.ac.uk> In-Reply-To: <1321444170.15416.0@dataman1> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1323710244724219247==" --===============1323710244724219247== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit At Wed, 16 Nov 2011 11:49:30 +0000, Barry Samuels wrote: > I have set up a second virtual site on my computer so that I can use www2 > instead of www because that's already used and I want to keep it separate. This may be a red herring. > If I access this page with a web browser as a file i.e. file/// it > works as expected, although I have to change the src= path to > include / var/www2, but if I access it using http:// it doesn't > update and if I use 'view/page source' I see that: > > > > has been replaced with: > > > > Why should that happen? What browser? I assume you've tried others? What does: $ curl http://www2.foo.bar/baz.html look like? And what if you disable some content filtering plugins in your $browser? Best, Richard -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis ISMS, Computing Goldsmiths, University of London Tel: +44 (0)20 7078 5134 Skype: richardjlewis JID: ironchicken(a)jabber.earth.li http://www.richardlewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --===============1323710244724219247==-- From bjsamuels@beenthere-donethat.org.uk Thu Nov 17 09:32:16 2011 From: Barry Samuels To: main@lists.alug.org.uk Subject: Re: [ALUG] Apache2 magic Date: Thu, 17 Nov 2011 09:32:14 +0000 Message-ID: <1321522334.15474.0@dataman1> In-Reply-To: <87ipmjsleo.wl%richard.lewis@gold.ac.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7488237572365632422==" --===============7488237572365632422== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit On 16/11/11 23:22:07, Richard Lewis wrote: > At Wed, 16 Nov 2011 11:49:30 +0000, > Barry Samuels wrote: > > > I have set up a second virtual site on my computer so that I can use > > www2 instead of www because that's already used and I want to keep > > it separate. > > This may be a red herring. > Ah! I suspected something fishy was going on. > > If I access this page with a web browser as a file i.e. file/// it > > works as expected, although I have to change the src= path to > > include / var/www2, but if I access it using http:// it doesn't > > update and if I use 'view/page source' I see that: > > > > > > > > has been replaced with: > > > > > > > > Why should that happen? > > What browser? I assume you've tried others? Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same code change. > > What does: > > $ curl http://www2.foo.bar/baz.html > > look like? 2 Hour Live data usage > And what if you disable some content filtering plugins in > your $browser? Epiphany has no add-ons of any kind. > > Best, > Richard -- Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain --===============7488237572365632422==-- From mark@quarella.co.uk Thu Nov 17 09:43:58 2011 From: Mark Rogers To: main@lists.alug.org.uk Subject: Re: [ALUG] Apache2 magic Date: Thu, 17 Nov 2011 09:47:24 +0000 Message-ID: <4EC4D82C.4000707@quarella.co.uk> In-Reply-To: <1321522334.15474.0@dataman1> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3722621315860239526==" --===============3722621315860239526== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 17/11/11 09:32, Barry Samuels wrote: > Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same cod= e=20 > change. A proxy? A google for rev=3D"x-refresh" pointed me at http://osdir.com/ml/debian-bugs-closed/2011-03/msg00068.html .. and "privoxy" A proxy would also better explain why it works as a file but not when served = from a web-server. --=20 Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER --===============3722621315860239526==-- From richardlewis@fastmail.co.uk Thu Nov 17 09:59:06 2011 From: Richard Lewis To: main@lists.alug.org.uk Subject: Re: [ALUG] Apache2 magic Date: Thu, 17 Nov 2011 09:58:56 +0000 Message-ID: <87d3crqdcv.wl%richard.lewis@gold.ac.uk> In-Reply-To: <1321522334.15474.0@dataman1> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7519828180455812335==" --===============7519828180455812335== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > > What browser? I assume you've tried others? > > Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the same > code change. > > > > What does: > > > > $ curl http://www2.foo.bar/baz.html > > > > look like? > > OK. So browser mangling is unlikely to be the problem. > > > I have set up a second virtual site on my computer so that I can use > > > www2 instead of www because that's already used and I want to keep > > > it separate. > > > > This may be a red herring. > > > Ah! I suspected something fishy was going on. You may, therefore, need to continue fishing in this pond. Best, Richard -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Richard Lewis ISMS, Computing Goldsmiths, University of London Tel: +44 (0)20 7078 5134 Skype: richardjlewis JID: ironchicken(a)jabber.earth.li http://www.richardlewis.me.uk/ -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- --===============7519828180455812335==-- From bjsamuels@beenthere-donethat.org.uk Thu Nov 17 10:23:55 2011 From: Barry Samuels To: main@lists.alug.org.uk Subject: Re: [ALUG] Apache2 magic Date: Thu, 17 Nov 2011 10:23:54 +0000 Message-ID: <1321525434.27705.0@dataman1> In-Reply-To: <4EC4D82C.4000707@quarella.co.uk> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0365614375788653852==" --===============0365614375788653852== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On 17/11/11 09:47:24, Mark Rogers wrote: > On 17/11/11 09:32, Barry Samuels wrote: > > Swiftfox. I've also tried Iceape, Opera and Epiphany. All show the=20 > > same code change. >=20 > A proxy? >=20 > A google for rev=3D"x-refresh" pointed me at > http://osdir.com/ml/debian-bugs-closed/2011-03/msg00068.html > .. and "privoxy" >=20 > A proxy would also better explain why it works as a file but not when > served from a web-server. >=20 > --=20 > Mark Rogers // More Solutions Ltd (Peterborough Office) // 0844 251 1450 > Registered in England (0456 0902) 21 Drakes Mews, Milton Keynes, MK8 0ER Spot on that man! Yes it was Privoxy. It has this in the configuration: #############################################################################= #### # # refresh-tags: Kill automatic refresh tags if refresh time is larger than=20 9 seconds. # #############################################################################= #### As I didn't understand the filter line and couldn't see '9' anywhere I've=20 change my page refresh time to 9 and it now works. Many thanks. --=20 Barry Samuels http://www.beenthere-donethat.org.uk The Unofficial Guide to Great Britain --===============0365614375788653852==--