【问题标题】:apache2.4 with lua scripts: LuaMapHandler causes config syntax error带有 lua 脚本的 apache2.4:LuaMapHandler 导致配置语法错误
【发布时间】:2016-11-27 18:28:40
【问题描述】:

我正在尝试在我的 Apache 服务器 (version 2.4.23) 上运行一个简单的 lua 脚本。

我关注了这些instructions 并将下一行添加到我的apache2.conf

LuaMapHandler / /path/to/lua/script.lua my_lua_handler

当我重新启动我的服务器时,我得到了这个输出:

AH00526: Syntax error on line 146 of /etc/apache2/apache2.conf:
Invalid command 'LuaMapHandler', perhaps misspelled or defined by included in the server configuration

据我所知,mod_lua 已经可以从version 2.3 获得 我错过了什么?

【问题讨论】:

    标签: apache lua apache-modules


    【解决方案1】:

    您可能需要load 模块:

    LoadModule lua_module modules/mod_lua.so
    

    和/或启用它使用

    a2enmod lua
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-03-18
      • 2020-11-24
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-05-20
      相关资源
      最近更新 更多