Merge pull request #107649 from nagy/apache-lua-paths
apacheHttpd, nixos/httpd: set lua paths
This commit is contained in:
commit
676b7d589f
@ -126,6 +126,13 @@ let
|
||||
</IfModule>
|
||||
'';
|
||||
|
||||
luaSetPaths = ''
|
||||
<IfModule mod_lua.c>
|
||||
LuaPackageCPath ${cfg.package.lua5}/lib/lua/${cfg.package.lua5.lua.luaversion}/?.so
|
||||
LuaPackagePath ${cfg.package.lua5}/share/lua/${cfg.package.lua5.lua.luaversion}/?.lua
|
||||
</IfModule>
|
||||
'';
|
||||
|
||||
mkVHostConf = hostOpts:
|
||||
let
|
||||
adminAddr = if hostOpts.adminAddr != null then hostOpts.adminAddr else cfg.adminAddr;
|
||||
@ -326,6 +333,8 @@ let
|
||||
|
||||
${sslConf}
|
||||
|
||||
${if cfg.package.luaSupport then luaSetPaths else ""}
|
||||
|
||||
# Fascist default - deny access to everything.
|
||||
<Directory />
|
||||
Options FollowSymLinks
|
||||
|
@ -84,7 +84,7 @@ stdenv.mkDerivation rec {
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
inherit apr aprutil sslSupport proxySupport ldapSupport;
|
||||
inherit apr aprutil sslSupport proxySupport ldapSupport luaSupport lua5;
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user