This file is indexed.

/usr/share/lua/5.1/xavante/indexhandler.lua is in xavante 2.3.0-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
-----------------------------------------------------------------------------
-- Xavante index handler
--
-- Authors: Javier Guerra
-- Copyright (c) 2006-2007 Kepler Project
--
-- $Id: indexhandler.lua,v 1.4 2007/11/27 15:57:05 carregal Exp $
-----------------------------------------------------------------------------

local function indexhandler (req, res, indexname)
        local indexUrl = string.gsub (req.cmd_url, "/[^/]*$", indexname)
        indexUrl = string.format ("http://%s%s", req.headers.host or "", indexUrl)

        res:add_header ("Location", indexUrl)
        res.statusline = "HTTP/1.1 302 Found"
        res.content = "redirect"

        res:send_headers()
        return res
end

return function (indexname)
         return function (req, res)
                  return indexhandler (req, res, indexname)
                end
       end