X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2483dcc4bb392ea53da517e28ca9a82590ba435c..35eeff008193a9fc2fc6f01c9ded931333c007b9:/config/lighttpd.conf?ds=inline diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 98f914cc9..80b941fa6 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -20,6 +20,8 @@ server.username = "www-data" server.groupname = "www-data" server.pid-file = "/var/run/lighttpd.pid" +server.max-fds = 8192 + # # Setup logging # @@ -108,6 +110,19 @@ url.redirect = ( "^/wiki/(.*)$" => "http://wiki.openstreetmap.org/$1" ) +# +# Redirect everything except www.openstreetmap.org and +# api.openstreetmap.org to www.openstreetmap.org +# +$HTTP["host"] =~ "^api\." { + $HTTP["host"] != "api.openstreetmap.org" { + url.redirect = ( "^(.*)$" => "http://api.openstreetmap.org$1" ) + } +} +else $HTTP["host"] != "www.openstreetmap.org" { + url.redirect = ( "^(.*)$" => "http://www.openstreetmap.org$1" ) +} + # # Run anything with a .pl iextension as a CGI script #