]> andersk Git - sql.git/blame - etc/lighttpd/lighttpd.conf
lighttpd.conf: upgrade to lighttpd 1.5 r2522
[sql.git] / etc / lighttpd / lighttpd.conf
CommitLineData
585b537e 1server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_proxy_core", "mod_proxy_backend_fastcgi", "mod_redirect", "mod_accesslog" )
a12280f7 2server.errorlog = "/var/log/lighttpd/error_log"
d824f16b
JP
3$HTTP["useragent"] !~ "^check_http" {
4 accesslog.filename = "/var/log/lighttpd/access_log"
5}
a12280f7
JP
6etag.use-inode = "disable"
7index-file.names = ( "index.php", "index.html" )
a12280f7 8url.access-deny = ( "~", ".inc", ".svn", "CVS" )
0c349980 9static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
a12280f7 10server.port = 80
a12280f7
JP
11server.pid-file = "/var/run/lighttpd.pid"
12server.username = "lighttpd"
13server.groupname = "lighttpd"
585b537e
JP
14
15$PHYSICAL["existing-path"] =~ "\.php$" {
16 proxy-core.balancer = "round-robin"
17 proxy-core.allow-x-sendfile = "enable"
18 proxy-core.protocol = "fastcgi"
19 proxy-core.backends = ( "unix:/tmp/php-fastcgi.sock" )
20 proxy-core.max-pool-size = 4
21}
a12280f7 22
82981855
JP
23server.document-root = "/srv/web/home/"
24alias.url = ( "/~sql" => "/srv/web" )
25alias.url += ( "/main" => "/srv/web/main" )
26alias.url += ( "/dev" => "/srv/web/dev" )
27alias.url += ( "/tools" => "/srv/web/tools" )
28#alias.url += ( "/" => "/srv/web/home" )
a12280f7
JP
29url.rewrite-once = ( "^/tools/([^\?]+)(\??.*)" => "/tools/$1.php$2" )
30url.rewrite-once += ( "^/~sql/main/do/([^\?]+)(\??.*)" => "/~sql/main/$1.php$2" )
0c349980
JP
31url.rewrite-once += ( "^/~sql/dev/do/([^\?]+)(\??.*)" => "/~sql/dev/$1.php$2" )
32url.rewrite-once += ( "^/main/do/([^\?]+)(\??.*)" => "/main/$1.php$2" )
33url.rewrite-once += ( "^/dev/do/([^\?]+)(\??.*)" => "/dev/$1.php$2" )
794cf93a 34url.redirect = ( "^/phpMyAdmin(.*)" => "http://scripts.mit.edu/~sql/phpMyAdmin$1" )
a12280f7 35ssl.verifyclient.username = "SSL_CLIENT_S_DN_emailAddress"
0c349980 36$SERVER["socket"] == "0.0.0.0:443" {
a12280f7 37 ssl.engine = "enable"
27a83527 38 ssl.pemfile = "/etc/lighttpd/sql.mit.edu.pem"
a12280f7
JP
39 ssl.ca-file = "/etc/lighttpd/mitCAclient.pem"
40 ssl.verifyclient.activate = "enable"
41 ssl.verifyclient.enforce = "disable"
42 ssl.verifyclient.depth = 2
0c349980
JP
43}
44mimetype.assign = (
a12280f7
JP
45 ".gz" => "application/x-gzip",
46 ".tar.gz" => "application/x-tgz",
47 ".tgz" => "application/x-tgz",
48 ".tar" => "application/x-tar",
49 ".gif" => "image/gif",
50 ".jpg" => "image/jpeg",
51 ".jpeg" => "image/jpeg",
52 ".png" => "image/png",
53 ".css" => "text/css",
54 ".html" => "text/html",
55 ".htm" => "text/html",
56 ".js" => "text/javascript",
57 ".asc" => "text/plain",
58 ".c" => "text/plain",
59 ".cpp" => "text/plain",
60 ".log" => "text/plain",
61 ".conf" => "text/plain",
62 ".text" => "text/plain",
63 ".txt" => "text/plain",
64 ".dtd" => "text/xml",
65 ".xml" => "text/xml",
66 ".bz2" => "application/x-bzip",
67 ".tbz" => "application/x-bzip-compressed-tar",
68 ".tar.bz2" => "application/x-bzip-compressed-tar"
0c349980 69)
This page took 0.066019 seconds and 5 git commands to generate.