]>
Commit | Line | Data |
---|---|---|
1 | server.modules = ( "mod_rewrite", "mod_alias", "mod_access", "mod_fastcgi", "mod_redirect", "mod_accesslog" ) | |
2 | server.errorlog = "/var/log/lighttpd/error_log" | |
3 | accesslog.filename = "/var/log/lighttpd/access_log" | |
4 | etag.use-inode = "disable" | |
5 | index-file.names = ( "index.php", "index.html" ) | |
6 | server.tag = "" | |
7 | url.access-deny = ( "~", ".inc", ".svn", "CVS" ) | |
8 | static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" ) | |
9 | static-file.etags = "enable" | |
10 | server.port = 80 | |
11 | #server.bind = "localhost" | |
12 | #server.error-handler-404 = "/error-handler.html" | |
13 | #server.error-handler-404 = "/error-handler.php" | |
14 | server.pid-file = "/var/run/lighttpd.pid" | |
15 | server.username = "lighttpd" | |
16 | server.groupname = "lighttpd" | |
17 | fastcgi.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 | ||
31 | server.document-root = "/srv/web/home/" | |
32 | alias.url = ( "/~sql" => "/srv/web" ) | |
33 | alias.url += ( "/main" => "/srv/web/main" ) | |
34 | alias.url += ( "/dev" => "/srv/web/dev" ) | |
35 | alias.url += ( "/tools" => "/srv/web/tools" ) | |
36 | #alias.url += ( "/" => "/srv/web/home" ) | |
37 | url.rewrite-once = ( "^/tools/([^\?]+)(\??.*)" => "/tools/$1.php$2" ) | |
38 | url.rewrite-once += ( "^/~sql/main/do/([^\?]+)(\??.*)" => "/~sql/main/$1.php$2" ) | |
39 | url.rewrite-once += ( "^/~sql/dev/do/([^\?]+)(\??.*)" => "/~sql/dev/$1.php$2" ) | |
40 | url.rewrite-once += ( "^/main/do/([^\?]+)(\??.*)" => "/main/$1.php$2" ) | |
41 | url.rewrite-once += ( "^/dev/do/([^\?]+)(\??.*)" => "/dev/$1.php$2" ) | |
42 | url.redirect = ( "^/phpMyAdmin(.*)" => "http://scripts.mit.edu/~sql/phpMyAdmin$1" ) | |
43 | ssl.verifyclient.username = "SSL_CLIENT_S_DN_emailAddress" | |
44 | $SERVER["socket"] == "0.0.0.0:443" { | |
45 | ssl.engine = "enable" | |
46 | ssl.pemfile = "/etc/lighttpd/sql.mit.edu.pem" | |
47 | ssl.ca-file = "/etc/lighttpd/mitCAclient.pem" | |
48 | ssl.verifyclient.activate = "enable" | |
49 | ssl.verifyclient.enforce = "disable" | |
50 | ssl.verifyclient.depth = 2 | |
51 | } | |
52 | mimetype.assign = ( | |
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" | |
77 | ) |