Új hozzászólás Aktív témák

  • Intruder2k5

    MODERÁTOR

    válasz ajani #6172 üzenetére

    Vsz ezzel a konfiggal kellene mennie!

    # lighttpd configuration file

    server.modules = (
    "mod_fastcgi",
    "mod_cgi",
    )

    server.port = 81
    server.network-backend = "write"
    server.document-root = "/mnt/Media/Kepek/iPhone/Upload/"
    server.errorlog = "/var/log/lighttpd/error.log"
    server.pid-file = "/var/run/lighttpd.pid"
    server.upload-dirs = ( "/tmp" )
    server.event-handler = "poll"
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    index-file.names = ( "index.html", "default.html", "index.htm", "default.htm","index.php" )
    cgi.assign = ( ".php" => "/usr/bin/php" )
    mimetype.use-xattr = "disable"

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

    mimetype.assign = (
    ".pdf" => "application/pdf",
    ".class" => "application/octet-stream",
    ".pac" => "application/x-ns-proxy-autoconfig",
    ".swf" => "application/x-shockwave-flash",
    ".wav" => "audio/x-wav",
    ".gif" => "image/gif",
    ".jpg" => "image/jpeg",
    ".jpeg" => "image/jpeg",
    ".png" => "image/png",
    ".svg" => "image/svg+xml",
    ".css" => "text/css",
    ".html" => "text/html",
    ".htm" => "text/html",
    ".js" => "text/javascript",
    ".txt" => "text/plain",
    ".dtd" => "text/xml",
    ".xml" => "text/xml"
    )

    fastcgi.server = (
    ".php" =>
    ( "localhost" =>
    ( "socket" => "/tmp/php-fcgi.sock",
    "bin-path" => "/usr/bin/php-fcgi",
    "max-procs" => 1,
    "bin-environment" =>
    ( "PHP_FCGI_CHILDREN" => "2",
    "PHP_FCGI_MAX_REQUESTS" => "1000"
    )
    )
    )
    )

Új hozzászólás Aktív témák