> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Project Uptime : Progress Report 6 : Tweaking Varnish
- URL: https://kudithipudi.org/project-uptime-progress-report-6-tweaking-varnish/
- Published: 2012-04-14T05:54:00.000Z
- Updated: 2012-04-14T05:54:00.000Z
- Description: The server has held up pretty well, since the installation of varnish. Based on this wiki post, I added the following to /etc/varnish/default.vcl [code] <pre> #...
- Author: admin
- Tags: Technology, Uncategorized, Web, #wp, #wp-post, #Import 2026-08-23 02:32

The server has held up pretty well, since [the installation](https://kudithipudi.org/project-uptime-progress-report-5-getting-ready-for-reddit-and-hacker-news/) of varnish. Based on [this](https://www.varnish-cache.org/trac/wiki/VarnishAndWordpress?ref=kudithipudi.org) wiki post, I added the following to /etc/varnish/default.vcl

```

<pre>
# Drop any cookies sent to WordPress.
sub vcl_recv {
        if (!(req.url ~ "wp-(login|admin)")) {
                unset req.http.cookie;
        }
}
# Drop any cookies WordPress tries to send back to the client.
sub vcl_fetch {
        if (!(req.url ~ "wp-(login|admin)")) {
                unset beresp.http.set-cookie;
        }
}
```

I think the comments are pretty self explanatory.