Viewing 13 replies - 16 through 28 (of 28 total)
  • Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Okay, I’ll see what I can do to work around that. This may not be possible with wp_remote_request though. Not sure. Must research and test.

    Ok, I switched from Pound to NGINX,

    now I can request a purge:

    :/etc/nginx/ssl# curl -X PURGE "https://server.com/.*"
    <!DOCTYPE html>
    <html>
      <head>
        <title>200 Purged</title>
      </head>
      <body>
        <h1>Error 200 Purged</h1>
        <p>Purged</p>
        <h3>Guru Meditation:</h3>
        <p>XID: 1572866</p>
        <hr>
        <p>Varnish cache server</p>
      </body>
    </html>

    But I need to do HTTPS because I redirect all trafic from HTTP to HTTPS…

    If I try HTTP I get this error:

    <center><h1>400 Bad Request</h1></center>
    <center>The plain HTTP request was sent to HTTPS port</center>

    ??

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    But I need to do HTTPS because I redirect all trafic from HTTP to HTTPS…

    Then how on earth is Varnish working to begin with? It’s only on HTTP… I think you set that up wrong, but I don’t have it installed so I can’t test that at the moment.

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    FYI, the plugin is now limited to only purging http, because Varnish.

    Hi there!

    Apologies, I can’t tell what the resolution was here, is it possible to purge Varnish using this plugin when Pound is being used (to direct HTTP traffic to Varnish, HTTPS to Apache)?

    Thanks,

    Toby

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Pound’s not supported. If it works, awesome, but I’m not given the time to sort out how to get it to understand ports just yet, without added in a mess of options I’m trying hard NOT to add in. This is (and likely will always be) the plugin without options on purpose. I may put in a define override, but don’t hold your breath.

    Thanks for getting back to me – was the original problem that Pound wouldn’t forward the PURGE verb on to Varnish, I couldn’t tell from the OP’s message?

    I’m unable to get your plugin toi purge Varnish at the moment, I’m just trying to understand if that’s a problem with Pound? (And it’s possible you have no idea, I just couldn’t quite follow the thread here)

    Thanks,

    Toby

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    The OP changed to nginx because pound was weird.

    The other poster asked if I could make the plugin only hit http, which it does.

    You’re welcome to open a new topic (this one is resolved, so it’s bad form to post new questions in it) but I don’t use pound and I’m not sure if I can be much help.

    When you do post your own topic, please describe how you can manually purge varnish, outside the plugin. That may give us some clues.

    Sure thing Mika – I’ll have another look at our server and see if I can figure out more about what’s going on. I only posted here as I thought I might have the same problem, however will post anew if I figure out what’s happening.

    Best wishes,

    Toby

    Hey Mika,

    thanks for your plugin. Regarding the issue above I also need to purge via https. I using a Load Balancer that terminates the SSL and redirect the traffic to the app server via http. But I need to send the purge with https. Do you think it is possible to add a filter to the schema?

    $schema = apply_filters( 'varnish_http_purge_schema', 'https://' );

    Than we are all completely free on our decision of the schema.

    Thanks for your work on this.

    I also send you a pull request on github.

    Plugin Contributor Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    That looks okay. I’ll review it today and see if there are side affects, but defaulting to https and letting you filter should be fine.

Viewing 13 replies - 16 through 28 (of 28 total)
  • The topic ‘Varnish PURGE and Pound SSL proxy’ is closed to new replies.