X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/9829ef097f38228ecb11826aa8c48174e30d3cce..5506b2d9592f04800436c968055f540685efd29e:/config/lighttpd.conf?ds=inline diff --git a/config/lighttpd.conf b/config/lighttpd.conf index 0a6840e4b..317413f57 100644 --- a/config/lighttpd.conf +++ b/config/lighttpd.conf @@ -4,6 +4,7 @@ server.modules = ( "mod_access", "mod_accesslog", + "mod_cgi", "mod_compress", "mod_evasive", "mod_fastcgi", @@ -82,9 +83,17 @@ compress.filetype = ( compress.cache-dir = "/var/cache/lighttpd" # -# Redirect wiki requests to the wiki +# Redirect trac and wiki requests to the right places # -url.redirect = ( "^/wiki/(.*)$" => "http://wiki.openstreetmap.org/$1" ) +url.redirect = ( + "^/trac/(.*)$" => "http://trac.openstreetmap.org/$1", + "^/wiki/(.*)$" => "http://wiki.openstreetmap.org/$1" +) + +# +# Run anything with a .pl iextension as a CGI script +# +cgi.assign = ( ".pl" => "/usr/bin/perl" ) # # Serve static content from the rails public area ourselves