Привет всем,
Я пытаюсь вызвать модуль Apache lua из "mod_proxy_wstunnel. c", чтобы использовать функции mod_ lua.
Здесь мой код [mod_proxy_wstunnel.c]:
...
#include "#include "../../mod_lua.h"
...
...
static void ap_proxy_http_register_hook(apr_pool_t *p)
{
proxy_hook_scheme_handler(proxy_wstunnel_handler, NULL, NULL, APR_HOOK_FIRST);
proxy_hook_canon_handler(proxy_wstunnel_canon, NULL, NULL, APR_HOOK_FIRST);
ap_hook_handler(lua_handler, NULL, NULL, APR_HOOK_MIDDLE); // added line
}
Я добавил обработчик ap_hook_handler (lua_handler, NULL, NULL, APR_HOOK_MIDDLE); строка для вызова обработчика mod_ lua.
- stati c int Функция lua_handler (request_re c * r) находится в httpd-2.4.43 / modules / lua / mod_ lua. c
- stati c void ap_proxy_http_register_hook (apr_pool_t * p) находится в httpd-2.4.43 / modules / proxy / mod_proxy_wstunnel. c
Когда я компилирую, я получаю эту ошибку: mod_proxy_wstunnel. c: 19: 10: фатальная ошибка: ../../mod_lua.h: нет такого файла или каталога 19 | #include "../../mod_lua.h"
Любая помощь или идея приветствуются. Заранее спасибо.