mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 02:03:01 +00:00
Implemented virtual host support. Now it's possible to assign web applications to virtual host, for example:
{ ... services = { tomcat = { enable = true; virtualHosts = [ { name = "test1.localhost"; webapps = [ mypkgs.HelloApp ]; } { name = "test2.localhost"; webapps = [ mypkgs.ByeApp ]; } ]; }; }; } svn path=/nixos/trunk/; revision=16654
This commit is contained in:
parent
b4f8f919ab
commit
0d35699507
@ -122,7 +122,7 @@ mkIf config.services.tomcat.enable {
|
||||
chown ${cfg.user}:${cfg.group} ${cfg.baseDir}/conf
|
||||
|
||||
# Symlink the config files in the conf/ directory (except for catalina.properties and server.xml)
|
||||
for i in $(ls ${pkgs.tomcat6}/conf | grep -v catalina.properties server.xml)
|
||||
for i in $(ls ${pkgs.tomcat6}/conf | grep -v catalina.properties | grep -v server.xml)
|
||||
do
|
||||
ln -sf ${pkgs.tomcat6}/conf/$i ${cfg.baseDir}/conf/`basename $i`
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user