Title: WordPress HTTPS with Varnish
Last modified: August 21, 2016

---

# WordPress HTTPS with Varnish

 *  [chrismartino](https://wordpress.org/support/users/chrismartino/)
 * (@chrismartino)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-https-with-varnish/)
 * WP-HTTPS doesn’t seem to be playing nicely with the varnish caching server.
 * The problem may stem from the fact that WP-HTTPS is unable to identify the secure
   URL as a subdomain:
 *     ```
       [BEGIN WordPress HTTPS Debug Log]
       Version: 3.3.6
       HTTP URL: http://chrismartino.com/
       HTTPS URL: https://secure.chrismartino.com/
       SSL: Yes
       Diff Host: Yes
       Subdomain: No
       Proxy: No
       ```
   
 * As a result I have to use another plugin called ‘root Cookie’ to set a wildcard
   cookie.
 * The combination of root Cookie and WP-HTTPS result in a Varnish error when any
   POST operation is attempted.
 * Varnish reports:
 *     ```
       11 Hash         c /blog/wp-login.php?action=logout&_wpnonce=<somestring>
          11 Hash         c chrismartino.com
          11 VCL_return   c hash
          11 VCL_call     c pass pass
          11 Backend      c 12 default default
          11 FetchError   c http format error
          11 VCL_call     c error deliver
          11 VCL_call     c deliver deliver
          11 TxProtocol   c HTTP/1.1
          11 TxStatus     c 503
          11 TxResponse   c Service Unavailable
          11 TxHeader     c Server: Varnish
          11 TxHeader     c Content-Type: text/html; charset=utf-8
          11 TxHeader     c Retry-After: 5
          11 TxHeader     c Content-Length: 419
          11 TxHeader     c Accept-Ranges: bytes
          11 TxHeader     c Date: Fri, 20 Dec 2013 15:04:58 GMT
          11 TxHeader     c X-Varnish: 1826773627
          11 TxHeader     c Age: 0
          11 TxHeader     c Via: 1.1 varnish
          11 TxHeader     c Connection: close
       ```
   
 * The important part is “http format error”. My guess is it is trying to send a
   malformed header of some sort, but I don’t really know.
 * Any help is appreciated!
 * Thanks,
 * Chris
 * [http://wordpress.org/plugins/wordpress-https/](http://wordpress.org/plugins/wordpress-https/)

The topic ‘WordPress HTTPS with Varnish’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-https_bec2c9.svg)
 * [WordPress HTTPS (SSL)](https://wordpress.org/plugins/wordpress-https/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-https/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-https/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-https/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-https/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-https/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [chrismartino](https://wordpress.org/support/users/chrismartino/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/wordpress-https-with-varnish/)
 * Status: not resolved