removed DreamHost comments
removed DreamHost comments

--- a/varnish-conf/lib/bigfiles_pipe.vcl
+++ b/varnish-conf/lib/bigfiles_pipe.vcl
@@ -1,25 +1,11 @@
 # bigfiles_pipe.vcl -- Pipe for Large Files
-#
-# Copyright (C) 2013 DreamHost (New Dream Network, LLC)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # You must have "import std;" in your main vcl:
 # import std;
 
 # NOTE: Using restart and pipe is a workaround for a bug in varnish prior to
 # 3.0.3.  In 3.0.3+, hit_for_pass in vcl_fetch is all that is necessary.
+
 sub vcl_recv {
 	if (req.http.X-Pipe-Big-File && req.restarts > 0) {
 		unset req.http.X-Pipe-Big-File;

--- a/varnish-conf/lib/cloudflare.vcl
+++ b/varnish-conf/lib/cloudflare.vcl
@@ -1,19 +1,4 @@
 # cloudflare.vcl -- CloudFlare HTTP Headers
-#
-# Copyright (C) 2013 DreamHost (New Dream Network, LLC)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # This should generally be loaded first to make sure that the headers
 # get set appropriately for all requests.

--- a/varnish-conf/lib/mobile_cache.vcl
+++ b/varnish-conf/lib/mobile_cache.vcl
@@ -1,19 +1,4 @@
 # mobile_cache.vcl -- Separate cache for mobile clients
-#
-# Copyright (C) 2013 DreamHost (New Dream Network, LLC)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # If the User-Agent looks like a mobile device, then we add the string
 # "mobile" to the hash_data.  This results in mobile devices having
@@ -25,6 +10,7 @@
 # Also if the backend disagrees with this logic as far as what is a
 # "mobile" User-Agent, then we may save the wrong version of pages in
 # the cache.
+
 sub vcl_hash {
 	# General User-Agent list (anything that remotely looks like a mobile device)
 	if (req.http.User-Agent ~ "(?i)ipod|android|blackberry|phone|mobile|kindle|silk|fennec|tablet|webos|palm|windows ce|nokia|philips|samsung|sanyo|sony|panasonic|ericsson|alcatel|series60|series40|opera mini|opera mobi|au-mic|audiovox|avantgo|blazer|danger|docomo|epoc|ericy|i-mode|ipaq|midp-|mot-|netfront|nitro|pocket|portalmmm|rover|sie-|symbian|cldc-|j2me|up\.browser|up\.link|vodafone|wap1\.|wap2\.") {

--- a/varnish-conf/lib/mobile_pass.vcl
+++ b/varnish-conf/lib/mobile_pass.vcl
@@ -1,24 +1,10 @@
 # mobile_pass.vcl -- Mobile pass-through support for Varnish
-#
-# Copyright (C) 2013 DreamHost (New Dream Network, LLC)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 # This simply bypasses the cache for anything that looks like a mobile
 # (or tablet) device.
 # Also passes through some requests that are specifically for the WordPress
 # Jetpack mobile plugin.
+
 sub vcl_recv {
 	# Rules specifically for the Jetpack Mobile module
 	if (req.url ~ "\?(.*&)?(ak_action|app-download)=") {

--- a/varnish-conf/lib/xforward.vcl
+++ b/varnish-conf/lib/xforward.vcl
@@ -1,66 +1,17 @@
 # xforward.vcl -- X-Forwarded-For HTTP Headers
-#
-# Copyright (C) 2013 DreamHost (New Dream Network, LLC)
-#
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 2 of the License, or
-# (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
-# This file contains some of the default VCL code.  Original copyright
-# and license:
-
-/*
- * Copyright (c) 2006 Verdens Gang AS
- * Copyright (c) 2006-2011 Varnish Software AS
- * All rights reserved.
- *
- * Author: Poul-Henning Kamp <phk@phk.freebsd.dk>
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions
- * are met:
- * 1. Redistributions of source code must retain the above copyright
- *    notice, this list of conditions and the following disclaimer.
- * 2. Redistributions in binary form must reproduce the above copyright
- *    notice, this list of conditions and the following disclaimer in the
- *    documentation and/or other materials provided with the distribution.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
- * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
- * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
- * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE
- * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
- * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
- * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
- * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
- * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
- * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- */
 
 # This should generally be loaded first to make sure that the headers
 # get set appropriately for all requests.  Note that when using this
 # you MUST NOT fall through to the VCL default handler for vcl_recv
 # since that will run the code again, resulting in the client.ip
 # being added twice.
+
 sub vcl_recv {
-#	if (req.restarts == 0) {
-		if (req.http.X-Forwarded-For) {
-			set req.http.X-Forwarded-For =
-				req.http.X-Forwarded-For + ", " + client.ip;
-		} else {
-			set req.http.X-Forwarded-For = client.ip;
-		}
-#	}
+    if (req.http.X-Forwarded-For) {
+        set req.http.X-Forwarded-For =
+            req.http.X-Forwarded-For + ", " + client.ip;
+    } else {
+        set req.http.X-Forwarded-For = client.ip;
+    }
 }
 

comments