1 # DO NOT EDIT - This file is being maintained by Chef
4 ServerName nominatim.openstreetmap.org
5 ServerAdmin webmaster@openstreetmap.org
6 ServerAlias nominatim.osm.org
7 ServerAlias nominatim.openstreetmap.org
8 ServerAlias nominatim.openstreetmap.net
9 ServerAlias nominatim.openstreetmaps.org
10 ServerAlias nominatim.openmaps.org
12 CustomLog /var/log/apache2/nominatim.openstreetmap.org-access.log combined
13 ErrorLog /var/log/apache2/nominatim.openstreetmap.org-error.log
15 DocumentRoot <%= @directory %>/website
16 <Directory "<%= @directory %>/website/">
17 DirectoryIndex search.php
18 Options MultiViews FollowSymLinks
19 AddType text/html .php
20 AddType application/xml .phpx
21 AddType application/json .phpj
22 AddHandler fcgi:/var/run/php5-fpm-www.sock .php
23 AddHandler fcgi:/var/run/php5-fpm-www.sock .phpx
24 AddHandler fcgi:/var/run/php5-fpm-www.sock .phpj
27 Alias /pool-www/ "<%= @directory %>/website/"
29 AddHandler fcgi:/var/run/php5-fpm-www.sock .php
30 AddHandler fcgi:/var/run/php5-fpm-www.sock .phpx
31 AddHandler fcgi:/var/run/php5-fpm-www.sock .phpj
33 Alias /pool-bulk/ "<%= @directory %>/website/"
35 AddHandler fcgi:/var/run/php5-fpm-bulk.sock .php
36 AddHandler fcgi:/var/run/php5-fpm-bulk.sock .phpx
37 AddHandler fcgi:/var/run/php5-fpm-bulk.sock .phpj
39 Redirect 509 /pool-block/
40 ErrorDocument 509 /509.html
41 <Location /pool-block>
42 ErrorDocument 509 /509.html
44 Redirect 403 /pool-ban/
46 ErrorDocument 403 /403.html
48 ErrorDocument 403 /403.html
53 Include <%= @directory %>/settings/apache_blocks.conf
55 # regular requests and autoblocks
56 RewriteMap bulklist txt:<%= @directory %>/settings/ip_blocks.map
57 RewriteRule ^/([sdr].*) /pool-${bulklist:%{REMOTE_ADDR}|www}/$1 [PT]