blob: 0e93197d5bf26f7302f98e9de07aa9eb52c5b19b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
Vmod-geoip README
Copyright (C) 2017 Sergey Poznyakoff
See the end of file for copying conditions.
* Overview
This module provides API for using geolocation databases from the VCL
files.
* Example
import geoip;
if (geoip.country_code == "US") {
...
}
* Installation
In order to compile the package you need to have Varnish 4.1 source tree and
libmaxminddb installed.
Supposing that the varnish source tree
is available under /usr/src/varnish-4.1, run:
./configure --with-varnish-source=/usr/src/varnish-4.1
Once configured, do
make
This will build the module.
Finally, do the following command as root:
make install
* Documentation
The manual page vmod_geoip(3) will be available after successful
install.
* Bug reporting
Send bug reports and suggestions to <gray@gnu.org>
* Copyright information:
Copyright (C) 2017 Sergey Poznyakoff
Permission is granted to anyone to make or distribute verbatim copies
of this document as received, in any medium, provided that the
copyright notice and this permission notice are preserved,
thus giving the recipient permission to redistribute in turn.
Permission is granted to distribute modified versions
of this document, or of portions of it,
under the above conditions, provided also that they
carry prominent notices stating who last changed them.
Local Variables:
mode: outline
paragraph-separate: "[ ]*$"
version-control: never
End:
|