Skip to content

Commit 81b9005

Browse files
committed
various
1 parent 658f960 commit 81b9005

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

docker-compose.yml

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ varnish:
2424

2525
apache:
2626
image: fballiano/magento2-apache-php
27-
# ports:
28-
# - "8080:80"
2927
links:
3028
- db
3129
- redis

varnish.vcl

+10-1
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@ import std;
44
import directors;
55

66
#AUTOGENERATED_START
7-
backend default {
7+
backend apache_1 {
88
.host = "apache";
99
.port = "80";
1010
}
11+
12+
sub vcl_init {
13+
new cluster1 = directors.round_robin();
14+
cluster1.add_backend(apache_1);
15+
}
16+
17+
sub vcl_recv {
18+
set req.backend_hint = cluster1.backend();
19+
}
1120
#AUTOGENERATED_END
1221

1322
acl purge {

0 commit comments

Comments
 (0)