diff options
author | Nicolas Vigier <boklm@mageia.org> | 2010-11-18 16:58:22 +0000 |
---|---|---|
committer | Nicolas Vigier <boklm@mageia.org> | 2010-11-18 16:58:22 +0000 |
commit | e38d6bdc9c354dc4e608444f7f77f1344d23ffe3 (patch) | |
tree | 7676b94294d19eb1b9746fc212179218635d21d9 | |
parent | 45b3010e5d57baacdd7970d2ddbb0684bdd23f08 (diff) | |
download | puppet-e38d6bdc9c354dc4e608444f7f77f1344d23ffe3.tar puppet-e38d6bdc9c354dc4e608444f7f77f1344d23ffe3.tar.gz puppet-e38d6bdc9c354dc4e608444f7f77f1344d23ffe3.tar.bz2 puppet-e38d6bdc9c354dc4e608444f7f77f1344d23ffe3.tar.xz puppet-e38d6bdc9c354dc4e608444f7f77f1344d23ffe3.zip |
add vhost and webapp conf files
-rw-r--r-- | modules/sympa/manifests/init.pp | 9 | ||||
-rw-r--r-- | modules/sympa/templates/vhost_sympa.mageia.org.conf | 7 | ||||
-rw-r--r-- | modules/sympa/templates/webapp_sympa.conf | 8 |
3 files changed, 24 insertions, 0 deletions
diff --git a/modules/sympa/manifests/init.pp b/modules/sympa/manifests/init.pp index 96d2f803..0cc52672 100644 --- a/modules/sympa/manifests/init.pp +++ b/modules/sympa/manifests/init.pp @@ -40,5 +40,14 @@ class sympa { mode => 644, content => template("sympa/ldap_alias_entry.tt2") } + + include apache::mod_fcgid + apache::webapp_other{"sympa": + webapp_file => "sympa/webapp_sympa.conf", + } + + apache::vhost_other_app { "ml.$domain": + vhost_file => "sympa/vhost_sympa.mageia.org.conf", + } } diff --git a/modules/sympa/templates/vhost_sympa.mageia.org.conf b/modules/sympa/templates/vhost_sympa.mageia.org.conf new file mode 100644 index 00000000..0b2502b0 --- /dev/null +++ b/modules/sympa/templates/vhost_sympa.mageia.org.conf @@ -0,0 +1,7 @@ +<VirtualHost *:80> + ServerName ml.<%= domain %> + DocumentRoot /usr/lib64/sympa/cgi + <Location /> + Allow from all + </Location> +</VirtualHost> diff --git a/modules/sympa/templates/webapp_sympa.conf b/modules/sympa/templates/webapp_sympa.conf new file mode 100644 index 00000000..970a8836 --- /dev/null +++ b/modules/sympa/templates/webapp_sympa.conf @@ -0,0 +1,8 @@ +<Directory /usr/lib64/sympa/cgi> + Options ExecCGI + AddHandler fastcgi-script .fcgi + DirectoryIndex wwsympa-wrapper.fcgi + + Order allow,deny + Allow from all +</Directory> |