New in CWP Edge-LatestFree with every CWPpro licenceWebsites up to 300x faster

CWP now includes LSPHP, LSAPI-Cache and CWP Cage at no extra cost with all CWPpro licences. The LSAPI-Cache plugin is integrated into our WordPress and other script installers, and CWP Cage gives every user complete isolation. Available now in the CWP Edge-Latest version.

Get CWPpro ›

Use Rainloop instead of Roundcube

Started by MyBuddyBen, September 12, 2016, 03:46:24 PM

Previous topic - Next topic

MyBuddyBen

Anybody that is using Varnish cache may run into issues with Roundcube messing up.. Well have no fear! I had the same issue.

So I switched from Roundcube to Rainloop (http://www.rainloop.net/) and works flawlessly.

After installing it, put this in your default.vcl and restart Varnish Server. It worked for me!

It's way more modern and has a better design to it than Roundcube to me.

sub vcl_recv {

if (req.url ~ "^/rainloop") {
          return (pass);
}
if (!(req.url ~ "rainloop")) {
unset req.http.cookie;
   }
if (req.url ~ "rainloop") {
      return(pipe);
   }

}

sub vcl_hash {
if(req.url !~ "^/(rainloop).*$" ){
    set req.url = regsuball(req.url,"\?.*$","");
   }
}


sub vcl_fetch {
        if (req.url ~ "^/rainloop") {
    return (hit_for_pass);
    }
}


Trying to help people :)
Chords and Lyrics