WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
WordPress HTTPS with Varnish (1 post)

  1. chrismartino
    Member
    Posted 6 months ago #

    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/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.