Created
May 1, 2013 15:57
-
-
Save deviantintegral/5496164 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
commit aacdf014a943cee6b9b88fbff9165e1f7d43812d | |
Author: Andrew Berry <[email protected]> | |
Date: Sun Mar 31 15:30:00 2013 -0400 | |
Updating to Ubuntu 12.04.2. | |
diff --git a/varnish/default.vcl b/varnish/default.vcl | |
index 3f1c064..be3ee42 100644 | |
--- a/varnish/default.vcl | |
+++ b/varnish/default.vcl | |
@@ -77,7 +77,7 @@ sub vcl_recv { | |
# Varnish cache temporarily. The session cookie allows all authenticated users | |
# to pass through as long as they're logged in. | |
if (req.http.Cookie) { | |
- set req.http.Cookie = ";" req.http.Cookie; | |
+ set req.http.Cookie = ";" + req.http.Cookie; | |
set req.http.Cookie = regsuball(req.http.Cookie, "; +", ";"); | |
set req.http.Cookie = regsuball(req.http.Cookie, ";(SESS[a-z0-9]+|NO_CACHE)=", "; \1="); | |
set req.http.Cookie = regsuball(req.http.Cookie, ";[^ ][^;]*", ""); | |
@@ -144,7 +144,7 @@ sub vcl_error { | |
<h1 class="title">Page Unavailable</h1> | |
<p>The page you requested is temporarily unavailable.</p> | |
<p>We're redirecting you to the <a href="/">homepage</a> in 5 seconds.</p> | |
- <div class="error">(Error "} obj.status " " obj.response {")</div> | |
+ <div class="error">(Error "} + obj.status + " " + obj.response + {")</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment