@@ -34,9 +34,9 @@ sub vcl_recv {
34
34
<%- end -%>
35
35
<%- if @logrealip -%>
36
36
if (req.http.X-Forwarded-For) {
37
- std.log("RealIP:" + req.http.X-Forwarded-For);
37
+ std.log("RealIP:" + req.http.X-Forwarded-For);
38
38
} else {
39
- std.log("RealIP:" + client.ip);
39
+ std.log("RealIP:" + client.ip);
40
40
}
41
41
<%- end -%>
42
42
@@ -64,7 +64,7 @@ sub vcl_recv {
64
64
# Static file cache
65
65
((req.url ~ "(?i)\.(jpg|jpeg|gif|png|tiff|tif|svg|swf|ico|css|kss|js|vsd|doc|ppt|pps|xls|pdf|mp3|mp4|m4a|ogg|mov|avi|wmv|sxw|zip|gz|bz2|tar|rar|odc|odb|odf|odg|odi|odp|ods|odt|sxc|sxd|sxi|sxw|dmg|torrent|deb|msi|iso|rpm|jar|class|flv|exe)$")||
66
66
# Plone images cache
67
- (req.url ~ "(?i)(image|imagem_large|image_preview|image_mini|image_thumb|image_tile|image_icon|imagem_listing)$")) &&
67
+ (req.url ~ "(?i)(image|imagem_large|image_preview|image_mini|image_thumb|image_tile|image_icon|imagem_listing)$")) &&
68
68
# Plone resource editor
69
69
(req.url !~ "(?i)\@\@plone\.resourceeditor\.getfile\?path\=")
70
70
<%- end -%>
@@ -107,7 +107,7 @@ sub vcl_recv {
107
107
return (synth(405, "Not allowed."));
108
108
}
109
109
ban(" req.url == " + req.url);
110
- set req.url = regsuball(req.url,"80","443");
110
+ set req.url = regsuball(req.url,"80","443");
111
111
set req.url = regsuball(req.url,"http","https");
112
112
ban(" req.url == " + req.url);
113
113
# Throw a synthetic page so the
@@ -230,6 +230,9 @@ sub vcl_deliver {
230
230
<%- if @functions [ 'vcl_deliver' ] -%>
231
231
<%= @functions . delete ( 'vcl_deliver' ) %>
232
232
<%- else -%>
233
+ <%- if @functions [ 'vcl_deliver_prepend' ] -%>
234
+ <%= @functions . delete ( 'vcl_deliver_prepend' ) %>
235
+ <%- end -%>
233
236
if (obj.hits > 0) {
234
237
set resp.http.X-Cache = "HIT";
235
238
} else {
@@ -247,6 +250,9 @@ sub vcl_deliver {
247
250
}
248
251
<%- end-%>
249
252
<%- end -%>
253
+ <%- if @functions [ 'vcl_deliver_append' ] -%>
254
+ <%= @functions . delete ( 'vcl_deliver_append' ) %>
255
+ <%- end -%>
250
256
<%- end -%>
251
257
}
252
258
0 commit comments