WordPress.org

Ready to get started?Download WordPress

Forums

W3 Total Cache
What's the Varnish server details syntax? (8 posts)

  1. Martin
    Member
    Posted 11 months ago #

    Hi, I've just installed Varnish which seems to be running fine.

    Could someone please tell me the server instance syntax that I need to enter into the Varnish area for W3?

    Is it localhost:6082 or 127.0.0.1:6082 or something different?
    I tried localhost:6082 which produced Varnish timing out so something is a little screwy.

    Any help much appreciated
    Martin

    http://wordpress.org/plugins/w3-total-cache/

  2. Martin
    Member
    Posted 11 months ago #

    Anyone running Varnish that can help me out here?

  3. Jim Robinson
    Member
    Posted 11 months ago #

    It will be different depending on your server setup. For the most part follow the basics here:

    https://www.varnish-cache.org/trac/wiki/VarnishAndWordpress

    You will definitely need to change things if you are running multiple servers where one or specific ones are designated for the admin but the Varnish docs will get you a basic setup on a single server.

  4. Jim Robinson
    Member
    Posted 11 months ago #

    Ah, just noticed there is a sample Varnish config file within W3TC's files:

    http://plugins.svn.wordpress.org/w3-total-cache/tags/0.9.3/ini/varnish-sample-config.vcl

  5. Pothi
    Member
    Posted 11 months ago #

    Hello Jim,

    What Martin asked is the syntax for Varnish servers to enter into W3 Total Cache plugin. I've tried multiple syntax as well in the past and have never succeeded. So, I am still wondering what the correct syntax is.

    There are multiple people who have successfully done it, but never shared publicly (from what I know of).

    Even though, none of my clients insist on W3TC, I'm still curious about this question.

    Thanks for trying to help, though.

    Pothi

  6. Jim Robinson
    Member
    Posted 11 months ago #

    Pothi, I thought he was asking for config examples. My mistake.

    Unfortunately I have never used Varnish within W3TC, just as a proxy in front of Apache so I am afraid I can't help there.

  7. Pothi
    Member
    Posted 11 months ago #

    No prob. There were multiple occasions where I entered the answer in the wrong threads / topics here in WPorg forums. :)

  8. Martin
    Member
    Posted 11 months ago #

    Hey guys, yeah, I was particularly after the purging setup and what needs to go into the W3TC settings.
    I'm getting there on the Varnish vcl with currently running at around 30% cache hits though I'm sure I'm missing out on more. One of those trial and error things I suppose.

    Thanks for adding to the conversation though. Appreciate your efforts and hopefully someone will spring with an answer :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.