config {
    var.PID                        = 5104
    var.CWD                        = "/LightTPD"
    server.errorlog                = "logs/lighttpd-srv.error.log"
    accesslog.filename             = "logs/lighttpd-srv.access.log"
    server.tag                     = ""
    server.modules                 = (
        "mod_indexfile",
        "mod_access",
        "mod_accesslog",
        "mod_alias",
        "mod_cgi",
        "mod_ssi",
        "mod_status",
        "mod_dirlisting",
        "mod_staticfile",
        # 9
    )
    server.document-root           = "HTDOCS/CI/"
    server.upload-dirs             = ("TMP/")
    index-file.names               = (
        "index.php",
        "index.pl",
        "index.cgi",
        "index.html",
        "index.htm",
        "default.htm",
        # 6
    )
    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
    )
    mimetype.use-xattr             = "enable"
    url.access-deny                = ("~", ".inc")
    static-file.exclude-extensions = (".php", ".pl", ".cgi")
    dir-listing.activate           = "enable"
    cgi.assign                     = (
        ".php" => "PHP/php-cgi.exe",
    )
    status.status-url              = "/server-status"
    status.config-url              = "/server-config"


    $HTTP["url"] =~ "\.pdf$" {
        # block 1
        server.range-requests = "disable"

    } # end of $HTTP["url"] =~ "\.pdf$"
}
