Varnish/Plone css not found

Laurence Rowe l at lrowe.co.uk
Wed Nov 18 18:42:19 CET 2009


OK, from this I can see that you requested the url:
http://parctechno.mediacommune.org:6081/ but have set the Zope virtual
hosting to be http://parctechno.mediacommune.org/ (the port is
missing). This means that the css is being requested on a different
server (your apache instance).

Change the vcl to say:

set req.url = "/VirtualHostBase/http/parctechno.mediacommune.org:6081/2/VirtualHostRoot/"
req.url;

run Varnish on port 80 or set Apache to proxy through to Varnish.

Laurence

2009/11/18 Fu Kite (Eric Labelle) <eric.a.labelle at gmail.com>
>
> GET base-cachekey5861.css:
>
> Response Headers
> Date Wed, 18 Nov 2009 17:20:41 GMT
> Server Apache/2.2.3 (CentOS)
> Content-Length 336
> Connectionclose
> Content-Typetext/html; charset=iso-8859-1
> Request Headers
> Hostparctechno.mediacommune.org
> User-AgentMozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6
> Accepttext/css,*/*;q=0.1
> Accept-Languageen-us,en;q=0.5
> Accept-Encodinggzip,deflate
> Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive300
> Connectionkeep-alive
> Refererhttp://parctechno.mediacommune.org:6081/
> Cache-Controlmax-age=0
> GET Plonecustom-cachekey5221.css :
>
>
> DateWed, 18 Nov 2009 17:20:41 GMT
> ServerApache/2.2.3 (CentOS)
> Content-Length343
> Connectionclose
> Content-Typetext/html; charset=iso-8859-1
> Request Headers
> Hostparctechno.mediacommune.org
> User-AgentMozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 GTB6
> Accepttext/css,*/*;q=0.1
> Accept-Languageen-us,en;q=0.5
> Accept-Encodinggzip,deflate
> Accept-CharsetISO-8859-1,utf-8;q=0.7,*;q=0.7
> Keep-Alive300
> Connectionkeep-alive
> Refererhttp://parctechno.mediacommune.org:6081/
> Cache-Controlmax-age=0
>
> I've attached what i figured would be the most relevant info for you from the varnish log as a txt file.
>
> Thanks!
>
>
>
> On Wed, Nov 18, 2009 at 12:15 PM, Laurence Rowe <l at lrowe.co.uk> wrote:
>>
>> What are the response headers you see in Firebug? varnishlog output is
>> also helpful.
>>
>> Laurence
>>
>> 2009/11/18 Fu Kite (Eric Labelle) <eric.a.labelle at gmail.com>:
>> > Hi lawrence
>> >
>> > here are the import statements from the generated plone source:
>> >
>> > <style type="text/css">@import
>> > url(http://parctechno.mediacommune.org/portal_css/Plone%20Default/base-cachekey5861.css);</style>
>> >
>> > <style type="text/css" media="all">@import
>> > url(http://parctechno.mediacommune.org/portal_css/Plone%20Default/ploneCustom-cachekey5221.css);</style>
>> >
>> >
>> >
>> > I'm really new to both plone and varnish so if it's something really obvious
>> > I apologize ahead of time :P
>> >
>> >
>> > On Wed, Nov 18, 2009 at 12:04 PM, Laurence Rowe <l at lrowe.co.uk> wrote:
>> >>
>> >> 2009/11/17 Fu Kite (Eric Labelle) <eric.a.labelle at gmail.com>:
>> >> > Hi
>> >> >
>> >> > I'm a total newb to varnish but here is my problem:
>> >> >
>> >> > When I connect to my plone site directly there is no problem however the
>> >> > moment i use varnish none of the css loads and all that loads is the
>> >> > html...
>> >> > pressing on plone's links to validate css returns that none of the css
>> >> > files
>> >> > are found when going through varnish.
>> >>
>> >> What urls do the css files linked from the page have?
>> >>
>> >> Laurence
>> >> _______________________________________________
>> >> varnish-misc mailing list
>> >> varnish-misc at projects.linpro.no
>> >> http://projects.linpro.no/mailman/listinfo/varnish-misc
>> >
>> >
>> >
>> > --
>> > Eric Labelle
>> > (Dubian)
>> > ________________________________
>> > Dubearth Collective - www.dubearth.com
>> >
>> >
>> >
>> _______________________________________________
>> varnish-misc mailing list
>> varnish-misc at projects.linpro.no
>> http://projects.linpro.no/mailman/listinfo/varnish-misc
>
>
>
> --
> Eric Labelle
> (Dubian)
> ________________________________
> Dubearth Collective - www.dubearth.com
>
>



More information about the varnish-misc mailing list