/usr/share/doc/xavante-doc/examples/config.lua is in xavante-doc 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 27 28 | -------------------------------------------------------------------------------
-- Xavante configuration file.
--
--
-- Authors: Javier Guerra and Andre Carregal
-- Copyright (c) 2004-2007 Kepler Project
---
-- $Id: config.lua,v 1.1 2007/10/31 17:50:13 carregal Exp $
------------------------------------------------------------------------------
local xavante = require "xavante.httpd"
local hvhost = require "xavante.vhostshandler"
local hurl = require "xavante.urlhandler"
local hindex = require "xavante.indexhandler"
local hfile = require "xavante.filehandler"
local hcgilua = require "xavante.cgiluahandler"
xavantee.handle_request = hvhost {
[""] = hurl {
["/"] = hindex ("/cgi/index.lp"),
["/cgi/"] = hcgilua.makeHandler (XAVANTE_WEB),
["/img/"] = hfile (XAVANTE_WEB.."/img"),
}
}
xavante.register ("*", 8080, "Xavante 1.3")
|