I'm brand-new to CiviCRM and really appreciate all the amazing work that's been done on this project!
I've been working on our implementation on a test server for a while now, but when I started implementing things on our production server, which is managed WordPress on Dreamhost (DreamPress), I'm running into issue related to modsecurity and Varnish cache I was hoping someone could help with.
For one example of the issue, I created a new contribution page and the test drive link works fine, but when I try to go to the live page () I get this error (throwing Xs in for a couple of values):
[Tue Jun 05 16:24:46 2018] [error] [client XXX.XXX.XXX.XXX] ModSecurity: Error reading request body: Partial results are valid but processing is incomplete [hostname "kptz.org"] [uri "/wp-admin/admin-ajax.php"] [unique_id "XXXXXXXXXXXXXXXXXX"]
I emailed Dreamhost support and their response was "... the plugin is using PHP sessions and setting session cookies that are conflicting with the Varnish cache. The cookies are setting 'no-cache' parameters, which are preventing Varnish from caching the site successfully. Previously, the plugin developers had posted in the forums regarding fixing the use of cookies for previous versions of the civicrm plugin. You can contact the developers and ask if the use of cookies can be adjusted for version 5.1.2 of the plugin."
They also said that they can add Varnish rules to my setup if they know what to add.
I suppose my first question is would I be better off using CiviCRM 4.6.36, i.e. is this something that is not an issue in the older version? If using the older version won't help, is there any guidance as to how to address this issue, or any sample Varnish rules available?
Thanks in advance for any assistance anyone can provide, and thanks again for CiviCRM!