]> andersk Git - sql.git/blame - etc/lighttpd/lighttpd.conf
daily_afs_backups only dumps databases with changes since last dump; moved to /srv
[sql.git] / etc / lighttpd / lighttpd.conf
CommitLineData
794cf93a 1server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_fastcgi", "mod_redirect", "mod_accesslog" )
a12280f7
JP
2server.errorlog = "/var/log/lighttpd/error_log"
3accesslog.filename = "/var/log/lighttpd/access_log"
4etag.use-inode = "disable"
5index-file.names = ( "index.php", "index.html" )
6server.tag = ""
7url.access-deny = ( "~", ".inc", ".svn", "CVS" )
0c349980 8static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
a12280f7
JP
9static-file.etags = "enable"
10server.port = 80
0c349980
JP
11#server.bind = "localhost"
12#server.error-handler-404 = "/error-handler.html"
13#server.error-handler-404 = "/error-handler.php"
a12280f7
JP
14server.pid-file = "/var/run/lighttpd.pid"
15server.username = "lighttpd"
16server.groupname = "lighttpd"
17fastcgi.server = ( ".php" =>
18 ( "localhost" => (
19 "socket" => "/tmp/php-fastcgi.socket",
20 "bin-path" => "/usr/bin/php-cgi",
21 "min-procs" => 2,
22 "max-procs" => 2,
23 "bin-environment" => (
24 "PHP_FCGI_CHILDREN" => "4",
25 "PHP_FCGI_MAX_REQUESTS" => "10000"
26 ),
27 "broken-scriptfilename" => "enable"
28 ))
29 )
30
82981855
JP
31server.document-root = "/srv/web/home/"
32alias.url = ( "/~sql" => "/srv/web" )
33alias.url += ( "/main" => "/srv/web/main" )
34alias.url += ( "/dev" => "/srv/web/dev" )
35alias.url += ( "/tools" => "/srv/web/tools" )
36#alias.url += ( "/" => "/srv/web/home" )
a12280f7
JP
37url.rewrite-once = ( "^/tools/([^\?]+)(\??.*)" => "/tools/$1.php$2" )
38url.rewrite-once += ( "^/~sql/main/do/([^\?]+)(\??.*)" => "/~sql/main/$1.php$2" )
0c349980
JP
39url.rewrite-once += ( "^/~sql/dev/do/([^\?]+)(\??.*)" => "/~sql/dev/$1.php$2" )
40url.rewrite-once += ( "^/main/do/([^\?]+)(\??.*)" => "/main/$1.php$2" )
41url.rewrite-once += ( "^/dev/do/([^\?]+)(\??.*)" => "/dev/$1.php$2" )
794cf93a 42url.redirect = ( "^/phpMyAdmin(.*)" => "http://scripts.mit.edu/~sql/phpMyAdmin$1" )
a12280f7 43ssl.verifyclient.username = "SSL_CLIENT_S_DN_emailAddress"
0c349980 44$SERVER["socket"] == "0.0.0.0:443" {
a12280f7 45 ssl.engine = "enable"
27a83527 46 ssl.pemfile = "/etc/lighttpd/sql.mit.edu.pem"
a12280f7
JP
47 ssl.ca-file = "/etc/lighttpd/mitCAclient.pem"
48 ssl.verifyclient.activate = "enable"
49 ssl.verifyclient.enforce = "disable"
50 ssl.verifyclient.depth = 2
0c349980
JP
51}
52mimetype.assign = (
a12280f7
JP
53 ".gz" => "application/x-gzip",
54 ".tar.gz" => "application/x-tgz",
55 ".tgz" => "application/x-tgz",
56 ".tar" => "application/x-tar",
57 ".gif" => "image/gif",
58 ".jpg" => "image/jpeg",
59 ".jpeg" => "image/jpeg",
60 ".png" => "image/png",
61 ".css" => "text/css",
62 ".html" => "text/html",
63 ".htm" => "text/html",
64 ".js" => "text/javascript",
65 ".asc" => "text/plain",
66 ".c" => "text/plain",
67 ".cpp" => "text/plain",
68 ".log" => "text/plain",
69 ".conf" => "text/plain",
70 ".text" => "text/plain",
71 ".txt" => "text/plain",
72 ".dtd" => "text/xml",
73 ".xml" => "text/xml",
74 ".bz2" => "application/x-bzip",
75 ".tbz" => "application/x-bzip-compressed-tar",
76 ".tar.bz2" => "application/x-bzip-compressed-tar"
0c349980 77)
This page took 0.093831 seconds and 5 git commands to generate.