config { var.PID = 21868 var.CWD = "/var/log" server.modules = ( "mod_indexfile", "mod_access", "mod_fastcgi", "mod_accesslog", "mod_dirlisting", "mod_staticfile", # 6 ) server.document-root = "/var/www/lightdocs/" server.errorlog = "/var/log/lighttpd/error.log" index-file.names = ("index.php", "index.html", "index.htm", "default.htm") mimetype.assign = ( ".pdf" => "application/pdf", ".sig" => "application/pgp-signature", ".spl" => "application/futuresplash", ".class" => "application/octet-stream", ".ps" => "application/postscript", # 5 ".torrent" => "application/x-bittorrent", ".dvi" => "application/x-dvi", ".gz" => "application/x-gzip", ".pac" => "application/x-ns-proxy-autoconfig", ".swf" => "application/x-shockwave-flash", # 10 ".tar.gz" => "application/x-tgz", ".tgz" => "application/x-tgz", ".tar" => "application/x-tar", ".zip" => "application/zip", ".mp3" => "audio/mpeg", # 15 ".m3u" => "audio/x-mpegurl", ".wma" => "audio/x-ms-wma", ".wax" => "audio/x-ms-wax", ".ogg" => "application/ogg", ".wav" => "audio/x-wav", # 20 ".gif" => "image/gif", ".jpg" => "image/jpeg", ".jpeg" => "image/jpeg", ".png" => "image/png", ".xbm" => "image/x-xbitmap", # 25 ".xpm" => "image/x-xpixmap", ".xwd" => "image/x-xwindowdump", ".css" => "text/css", ".html" => "text/html", ".htm" => "text/html", # 30 ".js" => "text/javascript", ".asc" => "text/plain", ".c" => "text/plain", ".cpp" => "text/plain", ".log" => "text/plain", # 35 ".conf" => "text/plain", ".text" => "text/plain", ".txt" => "text/plain", ".dtd" => "text/xml", ".xml" => "text/xml", # 40 ".mpeg" => "video/mpeg", ".mpg" => "video/mpeg", ".mov" => "video/quicktime", ".qt" => "video/quicktime", ".avi" => "video/x-msvideo", # 45 ".asf" => "video/x-ms-asf", ".asx" => "video/x-ms-asf", ".wmv" => "video/x-ms-wmv", ".bz2" => "application/x-bzip", ".tbz" => "application/x-bzip-compressed-tar", # 50 ".tar.bz2" => "application/x-bzip-compressed-tar", # 51 ) server.tag = "lighttpd" accesslog.filename = "/var/log/lighttpd/access.log" url.access-deny = ("~", ".inc") static-file.exclude-extensions = (".php", ".pl", ".fcgi") server.pid-file = "/var/run/lighttpd.pid" server.username = "www" server.groupname = "www" fastcgi.server = ( ".php" => ( "localhost" => ( "socket" => "/tmp/php-fastcgi.socket", "bin-path" => "/usr/bin/php-cgi", "max-procs" => 5, "idle-timeout" => 20, "max-load-per-proc" => 10, # 5 ), ), ) $HTTP["url"] =~ "\.pdf$" { # block 1 server.range-requests = "disable" } # end of $HTTP["url"] =~ "\.pdf$" $SERVER["socket"] == ":5000" { # block 2 ssl.engine = "enable" ssl.pemfile = "/etc/lighttpd/certificados/unico.pem" server.name = "login.site" server.document-root = "/var/www/lightdocs/site" $HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" { # block 3 server.max-keep-alive-requests = 0 } # end of $HTTP["useragent"] =~ "^(.*MSIE.*)|(.*AppleWebKit.*)$" } # end of $SERVER["socket"] == ":5000" $SERVER["socket"] == ":10000" { # block 4 server.document-root = "/var/www/lightdocs/site_comunicador" } # end of $SERVER["socket"] == ":10000" }