Apache httpd customization - extraDirectories & noUserDir .

svn path=/nixos/trunk/; revision=8985
This commit is contained in:
Michael Raskin 2007-07-15 11:16:01 +00:00
parent bf1033d2cb
commit 055a950331
2 changed files with 28 additions and 2 deletions

View File

@ -736,6 +736,28 @@
";
}
{
name = ["services" "httpd" "noUserDir"];
default = true;
description = "
Set to false to let users to publish ~/public_html as /~user.
";
}
{
name = ["services" "httpd" "extraDirectories"];
default = "";
example = "
<Directory /home>
Options FollowSymlinks
AllowOverride All
</Directory>
";
description = "
These lines go to httpd.conf verbatim. They will go after
directories and directory aliases defined by default.
";
}
{
name = ["services" "httpd" "subservices" "subversion" "enable"];

View File

@ -20,12 +20,16 @@ let
logDir = getCfg "logDir";
stateDir = getCfg "stateDir";
enableSSL = false;
noUserDir = getCfg "noUserDir";
extraDirectories = getCfg "extraDirectories";
webServer = import ../services/apache-httpd {
inherit (pkgs) stdenv apacheHttpd coreutils;
inherit (pkgs) apacheHttpd coreutils;
stdenv = pkgs.stdenvNewSetupScript;
inherit hostName httpPort httpsPort
user group adminAddr logDir stateDir;
user group adminAddr logDir stateDir
noUserDir extraDirectories;
subServices =