diff options
Diffstat (limited to 'modules/viewvc')
-rw-r--r-- | modules/viewvc/manifests/init.pp | 12 | ||||
-rw-r--r-- | modules/viewvc/templates/vhost.conf | 1 |
2 files changed, 9 insertions, 4 deletions
diff --git a/modules/viewvc/manifests/init.pp b/modules/viewvc/manifests/init.pp index 2545a8b1..38cc4eae 100644 --- a/modules/viewvc/manifests/init.pp +++ b/modules/viewvc/manifests/init.pp @@ -1,5 +1,5 @@ class viewvc { - include apache::mod::fastcgi + include apache::mod::fcgid include viewvc::var package {['viewvc', 'python-svn', @@ -42,11 +42,17 @@ class viewvc { $vhost_aliases = { '/viewvc' => '/var/www/viewvc/', '/robots.txt' => $robotsfile, - '/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/' } + + $script_aliases = { + '/' => '/usr/share/viewvc/bin/wsgi/viewvc.fcgi/', + } + + $process = 4 + apache::vhost::base { $viewvc::var::hostname: aliases => $vhost_aliases, - content => template('viewvc/vhost.conf'), + content => template('apache/vhost_fcgid.conf'), } apache::vhost::base { "ssl_${viewvc::var::hostname}": vhost => $viewvc::var::hostname, diff --git a/modules/viewvc/templates/vhost.conf b/modules/viewvc/templates/vhost.conf deleted file mode 100644 index 28e9f3d6..00000000 --- a/modules/viewvc/templates/vhost.conf +++ /dev/null @@ -1 +0,0 @@ - FastCgiServer /usr/share/viewvc/bin/wsgi/viewvc.fcgi -processes 4 -idle-timeout 30 |