-
Notifications
You must be signed in to change notification settings - Fork 4
/
mod_asn.conf
29 lines (20 loc) · 904 Bytes
/
mod_asn.conf
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
# mod_asn.c configuration example
<IfModule mod_asn.c>
# These configuration directives are per directory.
<Directory /srv/www/download>
# AS number lookups will be done for requests inside this directory.
ASLookup On
# Note: debugging can be enabled for specific subdirectories for
# testing, which is good on a busy server, because it is very extensive.
ASLookupDebug Off
# Add the prefix and AS number to the response headers like this:
# X-Prefix: 83.133.0.0/16
# X-AS: 13237
ASSetHeaders On
</Directory>
# SQL statement to be prepared. (Optional.)
#
# This configuration is per server, as the database (dbd) configuration.
#ASLookupQuery "SELECT pfx, asn FROM pfx2asn WHERE pfx >>= ip4r(%s) ORDER BY ip4r_size(pfx) LIMIT 1"
</IfModule>
# vim: set ft=apache ts=4 sw=4 ai expandtab smarttab: