         for option in options {
             switch option {
             case .possibleExtensions(let value):
-                possibleExtensions = value
+                configuration.possibleExtensions = value
             case .serveIndexForDir(let value):
-                serveIndexForDirectory = value
+                configuration.serveIndexForDirectory = value
             case .addLastModifiedHeader(let value):
-                addLastModifiedHeader = value
+                configuration.addLastModifiedHeader = value
             case .maxAgeCacheControlHeader(let value):
-                maxAgeCacheControlHeader = value
+                configuration.maxAgeCacheControlHeader = value
             case .redirect(let value):
-                redirect = value
+                configuration.redirect = value
             case .customResponseHeadersSetter(let value):
                 customResponseHeadersSetter = value
             case .generateETag (let value):
-                generateETag = value
+                configuration.generateETag = value
             }
         }
     }

        }

        if filePath.hasSuffix("/") {
            if serveIndexForDirectory {
                filePath += "index.html"
            } else {
                return nil

    private func serveExistingFile(_ filePath: String, requestPath: String, isDirectory: Bool,
                                   response: RouterResponse) {
        if isDirectory {
            if configuration.redirect {
                do {
                    try response.redirect(requestPath + "/")
                } catch {
