|
@@ -296,6 +296,7 @@ static void prepare_lua_environment(struct mg_connection *conn, lua_State *L)
|
|
|
reg_function(L, "include", lsp_include, conn);
|
|
|
reg_function(L, "redirect", lsp_redirect, conn);
|
|
|
reg_string(L, "version", CIVETWEB_VERSION);
|
|
|
+ reg_string(L, "document_root", conn->ctx->config[DOCUMENT_ROOT]);
|
|
|
|
|
|
// Export request_info
|
|
|
lua_pushstring(L, "request_info");
|