diff --git a/INSTALL.varnish b/INSTALL.varnish index c9793f9..b17679e 100644 --- a/INSTALL.varnish +++ b/INSTALL.varnish @@ -15,6 +15,10 @@ Noosfero was tested with Varnish 2.x. If you are using a Debian Lenny (and you should, unless Debian already released Squeeze by now), make sure you install varnish from the lenny-backports suite. +Install the RPAF apache module (or skip this step if not using apache): + + # apt-get install libapache2-mod-rpaf + 3) Enable varnish logging: 3a) Edit /etc/default/varnishncsa and uncomment the line that contains: diff --git a/etc/noosfero/varnish-noosfero.vcl b/etc/noosfero/varnish-noosfero.vcl index 86e663c..4aff0aa 100644 --- a/etc/noosfero/varnish-noosfero.vcl +++ b/etc/noosfero/varnish-noosfero.vcl @@ -1,13 +1,15 @@ sub vcl_recv { + if (req.request == "GET" || req.request == "HEAD") { if (req.http.Cookie) { - # We only care about the "_noosfero_session.*" cookie, used for - # authentication. - if (req.http.Cookie ~ "_noosfero_session.*" ) { - return (pass); - } - # Else strip all cookies - unset req.http.Cookie; + # We only care about the "_noosfero_session.*" cookie, used for + # authentication. + if (req.http.Cookie ~ "_noosfero_session.*" ) { + return (pass); + } + # Else strip all cookies + unset req.http.Cookie; } + } } sub vcl_error { -- libgit2 0.21.2