Ankündigung

Einklappen
Keine Ankündigung bisher.

Probleme mit /etc/lighttpd/lighttpd.conf

Einklappen
X
 
  • Filter
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge

    [Webserver] Probleme mit /etc/lighttpd/lighttpd.conf

    Hallo,
    kann mir jemand helfen, ich bräuchte den Inhalt von lighttpd.conf von einer Raspberry PI Image Installation mit smartcontrol ? Habe den File strubbelig gemacht.

    Gruß
    Michael

    #2
    hier bitte sehr

    Code:
    server.modules = (
        "mod_access",
        "mod_alias",
        "mod_auth",
        "mod_fastcgi",
        "mod_compress",
        "mod_redirect"
    )
    
    server.document-root        = "/var/www"
    server.upload-dirs          = ( "/var/control/upload" )
    server.errorlog             = "/var/log/lighttpd/error.log"
    server.pid-file             = "/var/run/lighttpd.pid"
    server.username             = "admin"
    server.groupname            = "admin"
    server.port                 = 80
    
    server.dir-listing          = "enable"
    dir-listing.encoding        = "utf-8"
    
    auth.backend                = "plain"
    auth.backend.plain.userfile = "/etc/lighttpd/users"
    
    index-file.names            = ( "index.php", "index.html" )
    url.access-deny             = ( "~", ".inc" )
    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
    
    compress.cache-dir          = "/var/cache/lighttpd/compress/"
    compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
    
    fastcgi.server = ( ".php" => ((
                         "bin-path" => "/usr/bin/php5-cgi",
                         "socket" => "/tmp/php.socket"
                     )))
    
    $SERVER["socket"] == ":443" {
        ssl.engine = "enable"
        ssl.pemfile = "/etc/pki/certs/smarthome.local.pem"
        ssl.ca-file = "/etc/pki/ca/ca.crt"
    }
    
    $HTTP["host"] == "smarthome.local" {
        server.document-root = "/var/www"
        server.name = "smarthome.local"
        ssl.pemfile = "/etc/pki/certs/smarthome.local.pem"
        ssl.ca-file = "/etc/pki/ca/ca.crt"
    }
    
    $HTTP["host"] == "smartvisu.local" {
        server.name = "smartvisu.local"
        server.document-root = "/var/www/smartvisu"
        ssl.pemfile = "/etc/pki/certs/smartvisu.local.pem"
        ssl.ca-file = "/etc/pki/ca/ca.crt"
    }
    
    
    #############################################################################
    # smartcontrol
    #############################################################################
    
    $SERVER["socket"] == ":8080" {
        ssl.engine = "enable"
        server.document-root = "/var/control"
        server.name = "smarthome.local"
        ssl.pemfile = "/etc/pki/certs/smartcontrol.local.pem"
        ssl.ca-file = "/etc/pki/ca/ca.crt"
        auth.require = ( "" =>
            (
            "method"  => "digest",
            "realm"   => "smartControl",
            "require" => "valid-user"
            )
        )
    }
    
    $HTTP["host"] == "smartcontrol.local" {
        server.document-root = "/var/control"
        server.name = "smartcontrol.local"
        ssl.pemfile = "/etc/pki/certs/smartcontrol.local.pem"
        ssl.ca-file = "/etc/pki/ca/ca.crt"
        ssl.verifyclient.activate = "enable"
        ssl.verifyclient.enforce = "disable"
        ssl.verifyclient.depth = 1
        ssl.verifyclient.username = "SSL_CLIENT_S_DN_CN"
        auth.require = ( "" =>
            (
            "method"  => "digest",
            "realm"   => "smartControl",
            "require" => "valid-user"
            )
        )
    }
    
    # default listening port for IPv6 falls back to the IPv4 port
    include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
    include_shell "/usr/share/lighttpd/create-mime.assign.pl"
    include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

    Kommentar


      #3
      Ich danke Dir !

      Kommentar

      Lädt...
      X