MCPcopy Create free account
hub / github.com/apache/httpd / lua_ap_server_info

Function lua_ap_server_info

modules/lua/lua_request.c:1597–1618  ·  view source on GitHub ↗

* lua_ap_server_info; r:server_info() - Returns server info, such as the * executable filename, server root, mpm etc */

Source from the content-addressed store, hash-verified

1595 * executable filename, server root, mpm etc
1596 */
1597static int lua_ap_server_info(lua_State *L)
1598{
1599 lua_newtable(L);
1600
1601 lua_pushstring(L, "server_executable");
1602 lua_pushstring(L, ap_server_argv0);
1603 lua_settable(L, -3);
1604
1605 lua_pushstring(L, "server_root");
1606 lua_pushstring(L, ap_server_root);
1607 lua_settable(L, -3);
1608
1609 lua_pushstring(L, "scoreboard_fname");
1610 lua_pushstring(L, ap_scoreboard_fname);
1611 lua_settable(L, -3);
1612
1613 lua_pushstring(L, "server_mpm");
1614 lua_pushstring(L, ap_show_mpm());
1615 lua_settable(L, -3);
1616
1617 return 1;
1618}
1619
1620
1621/*

Callers

nothing calls this directly

Calls 1

ap_show_mpmFunction · 0.85

Tested by

no test coverage detected