]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/web/recipes/backend.rb
Use mod_proxy_fcgi for FCGI support with apache 2.4
[chef.git] / cookbooks / web / recipes / backend.rb
index b059d4f4435a7e126c28ec3987933c08594ef3c9..7dc229eeb12220d6ca588d145514e7badd61962a 100644 (file)
@@ -24,10 +24,16 @@ include_recipe "web::cgimap"
 
 web_passwords = data_bag_item("web", "passwords")
 
-apache_module "fastcgi-handler"
 apache_module "remoteip"
 apache_module "rewrite"
 
+if node[:lsb][:release].to_f >= 14.04
+  apache_module "proxy"
+  apache_module "proxy_fcgi"
+else
+  apache_module "fastcgi-handler"
+end
+
 apache_site "default" do
   action [ :disable ]
 end