Modified the varnishram var
This commit is contained in:
parent
7d1176e773
commit
df194be1a0
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.ini
|
@ -2,4 +2,4 @@
|
||||
Installs Varnish in a simple manner, in front of an Apache Server. The Varnish cache runs on port 80 and Apache goes to port 8080.
|
||||
TESTED ON Debian 10 with varnish 6.1.1 and apache2 2.4.38
|
||||
## Vars:
|
||||
* varnishram : in megabytes, RAM allocated to Varnish. Used in the template "customexec.conf.j2".
|
||||
* varnishram : RAM allocated to Varnish. Used in the template "customexec.conf.j2". Unit is in m,g, etc. Example : 2g.
|
||||
|
@ -1,3 +1,3 @@
|
||||
[Service]
|
||||
ExecStart=
|
||||
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s default,{{ varnishram }}m
|
||||
ExecStart=/usr/sbin/varnishd -j unix,user=vcache -F -a :80 -T localhost:6082 -f /etc/varnish/default.vcl -S /etc/varnish/secret -s default,{{ varnishram }}
|
||||
|
@ -40,10 +40,6 @@ sub vcl_backend_response {
|
||||
}
|
||||
}
|
||||
|
||||
sub vcl_hash {
|
||||
hash_data(req.method);
|
||||
}
|
||||
|
||||
sub vcl_deliver {
|
||||
# Happens when we have all the pieces we need, and are about to send the
|
||||
# response to the client.
|
||||
|
Loading…
x
Reference in New Issue
Block a user