The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

xvarnish for cPanel question

Discussion in 'Workarounds and Optimization' started by nisamudeen97, Mar 7, 2017.

Tags:
  1. nisamudeen97

    nisamudeen97 Well-Known Member

    Joined:
    Jul 7, 2010
    Messages:
    48
    Likes Received:
    4
    Trophy Points:
    58
    Location:
    Cochin
    cPanel Access Level:
    Root Administrator
    HI,

    Is any one using Xvarnish ? I would like to know experiences with Xvarnish. I have just implemented in one of my servers. Used the below doc. Has anyone else used this? How long have you used it, how many servers, how did it go?

    repo.xvarnish.com/
     
    #1 nisamudeen97, Mar 7, 2017
    Last edited by a moderator: Mar 7, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    36,995
    Likes Received:
    1,275
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    I don't see much user-feedback on this application here on the cPanel forums, however I did find some discussion of this application on a WHT thread:

    Anyone using xVarnish? | Web Hosting Talk

    Thank you.
     
  3. Droidism20011

    Droidism20011 Member

    Joined:
    Jul 20, 2017
    Messages:
    23
    Likes Received:
    9
    Trophy Points:
    3
    Location:
    Amsterdam
    cPanel Access Level:
    Root Administrator
    @nisamudeen97

    Maybe a bit late, but I just got my first cPanel VPS, so i a have no idea if you allready tried xVarnish (renamed to Cachewall) or not.

    At this moment I have installed Cachewall (formerly xVarnish) and i'm blown away with how easy it was. The instructions are very simple and on the same level as installing ConfigServer on WHM/cPanel, only a few lines of code in the right order and you're done.

    What I noticed was that my Apache security headers (i.e X-XSS-Protection and so on) where not served to the browser, which is actually not really unsurprising, since we now serve cached pages via Varnish.

    After RTFVM (RTFVarnishM) I got a bit of an idea how one should accomplish this, but this didn't lead to any results. I then cowboy cd/ls'd the whole system and cd/ls'ed some more until I hit a file named vcl_deliver.vcl. This file is located in
    /etc/varnish.conf.d/local

    I added the code for my headers and then did a "service varnish restart", went to the WHM backend (in the browser) and purged the cache for my domain in the Cachewall UI.

    One thing to note however is that the regular vcl syntax is the following:

    Code:
    sub vcl_deliver {
      set resp.http.X-XSS-Protection = "1; mode=block";
      rest of your code....
    }
    This won't work. What you need to do is remove

    Code:
    sub vcl_deliver {
    }
    and just add:

    Code:
    set resp.http.X-XSS-Protection = "1; mode=block";
     rest of your code....
    save the file, restart varnish and purge cache via the WHM => Cachewall UI and your done.

    Please also note that I have not yet received feedback from the xVarnish/Cachewall developers if this method is 100% correct. My guess is that it is save, because the vcl_deliver.vcl has a opening header with the following content in it:

    Code:
    # This VCL file will be included in the VCL sub-routine vcl_deliver.
    #
    # Custom VCL here won't be overwritten.
    # We're open to ideas and will do our best to help with any problem. Contact us
    # at www.xvarnish.com or help@xvarnish.com.
    When I receive confirmation from the dev's I will update this thread.

    Hope that helps you and anyone else that is looking into Cachewall a.k.a. xVarnish.

    Kindly,

    W.
     
  4. KrasniyRus

    KrasniyRus Member

    Joined:
    Dec 23, 2016
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Russia
    cPanel Access Level:
    Root Administrator
    Hello nisamudeen97,

    I am using the xVarnish on more than 30 servers with cPanel and so far there is only on problem. It not occur often and when it occur, it is on a random principle. Once we was able to recreate the issue and contact their support team, reported the issue. For more than 3+ months, I have not feedback from them, however I guess this is the price of the free services.
     
Loading...

Share This Page