Added mod_jk module to apache httpd
svn path=/nixos/trunk/; revision=10310
This commit is contained in:
parent
8d5884e01f
commit
1727c4bd3b
2 changed files with 14 additions and 2 deletions
|
@ -1147,6 +1147,16 @@
|
|||
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 = {
|
||||
|
||||
|
|
|
@ -18,17 +18,19 @@ let
|
|||
stateDir = cfg.stateDir;
|
||||
enableSSL = false;
|
||||
extraDirectories = cfg.extraDirectories + extraConfig;
|
||||
|
||||
applicationMappings = cfg.mod_jk.applicationMappings;
|
||||
|
||||
startingDependency = if config.services.gw6c.enable && config.services.gw6c.autorun then "gw6c" else "network-interfaces";
|
||||
|
||||
webServer = import ../../services/apache-httpd {
|
||||
inherit (pkgs) apacheHttpd coreutils;
|
||||
stdenv = pkgs.stdenvNewSetupScript;
|
||||
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
|
||||
user group adminAddr logDir stateDir
|
||||
extraDirectories;
|
||||
extraDirectories applicationMappings;
|
||||
noUserDir = !cfg.enableUserDir;
|
||||
|
||||
subServices =
|
||||
|
|
Loading…
Reference in a new issue