Commit 1bb51902 authored by Tollef Fog Heen's avatar Tollef Fog Heen

Document server.identity and server.hostname (and -i to varnishd)

Fixes #602

git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@4421 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent c98b2e5b
......@@ -43,6 +43,7 @@
.Op Fl f Ar config
.Op Fl g Ar group
.Op Fl h Ar type Ns Op , Ns Ar options
.Op Fl i Ar identity
.Op Fl l Ar shmlogsize
.Op Fl n Ar name
.Op Fl P Ar file
......@@ -138,6 +139,11 @@ Specifies the hash algorithm.
See
.Sx Hash Algorithms
for a list of supported algorithms.
.It Fl i Ar identity
Specify the identity of the varnish server. This can be accessed
using
.Va server.identity
from VCL
.It Fl l Ar shmlogsize
Specify size of shmlog file.
Scaling suffixes like 'k', 'm' can be used up to (e)tabytes.
......
......@@ -489,6 +489,20 @@ The following variables are available while processing a request:
.Bl -tag -width 4n
.It Va client.ip
The client's IP address.
.It Va server.hostname
The host name of the server.
.It Va server.identity
The identity of the server, as set by the
.Fl i
parameter.
If the
.Fl i
parameter is not passed to
.Nm varnishd ,
.Va server.identity
will be set to the name of the instance, as specified by the
.Fl n
parameter.
.It Va server.ip
The IP address of the socket on which the client connection was
received.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment