Added mod_jk module to apache httpd
svn path=/nixos/trunk/; revision=10310
This commit is contained in:
parent
8d5884e01f
commit
1727c4bd3b
@ -1147,6 +1147,16 @@
|
|||||||
description = "Whether to enable the PHP module.";
|
description = "Whether to enable the PHP module.";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
mod_jk = {
|
||||||
|
enable = mkOption {
|
||||||
|
default = false;
|
||||||
|
description = "Whether to enable the Apache Tomcat connector.";
|
||||||
|
};
|
||||||
|
|
||||||
|
applicationMappings = mkOption {
|
||||||
|
default = [];
|
||||||
|
description = "List of Java webapplications that should be mapped to the servlet container (Tomcat/JBoss)";
|
||||||
|
};
|
||||||
|
|
||||||
subservices = {
|
subservices = {
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ let
|
|||||||
stateDir = cfg.stateDir;
|
stateDir = cfg.stateDir;
|
||||||
enableSSL = false;
|
enableSSL = false;
|
||||||
extraDirectories = cfg.extraDirectories + extraConfig;
|
extraDirectories = cfg.extraDirectories + extraConfig;
|
||||||
|
applicationMappings = cfg.mod_jk.applicationMappings;
|
||||||
|
|
||||||
startingDependency = if config.services.gw6c.enable && config.services.gw6c.autorun then "gw6c" else "network-interfaces";
|
startingDependency = if config.services.gw6c.enable && config.services.gw6c.autorun then "gw6c" else "network-interfaces";
|
||||||
|
|
||||||
@ -25,10 +26,11 @@ let
|
|||||||
inherit (pkgs) apacheHttpd coreutils;
|
inherit (pkgs) apacheHttpd coreutils;
|
||||||
stdenv = pkgs.stdenvNewSetupScript;
|
stdenv = pkgs.stdenvNewSetupScript;
|
||||||
php = if cfg.mod_php then pkgs.php else null;
|
php = if cfg.mod_php then pkgs.php else null;
|
||||||
|
tomcat_connectors = if cfg.mod_jk.enable then pkgs.tomcat_connectors else null;
|
||||||
|
|
||||||
inherit hostName httpPort httpsPort
|
inherit hostName httpPort httpsPort
|
||||||
user group adminAddr logDir stateDir
|
user group adminAddr logDir stateDir
|
||||||
extraDirectories;
|
extraDirectories applicationMappings;
|
||||||
noUserDir = !cfg.enableUserDir;
|
noUserDir = !cfg.enableUserDir;
|
||||||
|
|
||||||
subServices =
|
subServices =
|
||||||
|
Loading…
x
Reference in New Issue
Block a user