ln -sf ${config} $out/config/config.php
'';
};
- apache = {
+ apache = rec {
user = "wwwrun";
group = "wwwrun";
modules = [ "proxy_fcgi" ];
+ webappName = "tools_ldap";
+ root = "/run/current-system/webapps/${webappName}";
vhostConf = ''
- Alias /ldap "${webRoot}/htdocs"
- <Directory "${webRoot}/htdocs">
+ Alias /ldap "${root}"
+ <Directory "${root}">
DirectoryIndex index.php
<FilesMatch "\.php$">
SetHandler "proxy:unix:${phpFpm.socket}|fcgi://localhost"