Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426844
varnish.vcl
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
836 B
Referenced Files
None
Subscribers
None
varnish.vcl
View Options
/*
* Sample Varnish configuration for EventLogging
* ---------------------------------------------
* This configuration specifies that requests for /event.gif?... be
* handled by returning an empty response specifying HTTP 204 status
* code ("No Content"). Varnish will still log the request in its shm
* log, so it will be possible to consume the incoming event stream
* using varnishncsa.
*
* This setup is currently deployed at the Wikimedia Foundation and
* has been found to work well.
*
* Sample varnishncsa invocation:
* varnishncsa -m RxURL:^/event\.gif\?. -F "%q %l %t %h"
*
* See the varnishncsa(1) man page for details.
*
*/
sub
vcl_recv
{
if
(
req.url
~
"^/event\.gif"
)
{
error
204
;
}
}
sub
vcl_error
{
/* 204 responses shouldn't contain a body */
if
(
obj.status
==
204
)
{
return
(
deliver
);
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 13:45 (1 d, 18 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
39/f2/8793f4f98138f6ca0d97ec929932
Default Alt Text
varnish.vcl (836 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment