summaryrefslogtreecommitdiff
path: root/templates/vhosts/default.erb
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2011-10-08 22:27:37 +0200
committermh <mh@immerda.ch>2011-10-08 22:27:37 +0200
commit391dbaae8af22cf6f157aa4f741762a14cf0b483 (patch)
tree45f6b3b2d88b4acd133481e32cc7ef471b7ddc17 /templates/vhosts/default.erb
parent7991a88483f214d593a933ce97fc8a2adf44800e (diff)
add mod_fcgid stuff
Diffstat (limited to 'templates/vhosts/default.erb')
-rw-r--r--templates/vhosts/default.erb10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/vhosts/default.erb b/templates/vhosts/default.erb
index 5ab1d26..02dcb5b 100644
--- a/templates/vhosts/default.erb
+++ b/templates/vhosts/default.erb
@@ -19,6 +19,16 @@ vhost_parts.each do |vhost_part|
AssignUserId <%= run_uid+" "+run_gid %>
</IfModule>
+ <% elsif run_mod.to_s == 'fcgid' -%>
+ <IfModule mod_fcgid.c>
+ SuexecUserGroup <%= run_uid+" "+run_gid %>
+ <% if passing_extension.to_s == 'php' -%>
+ PHP_Fix_Pathinfo_Enable 1
+ <% end -%>
+ FCGIWrapper /var/www/mod_fcgid-starters/<%= name %> .<%= passing_extension %>
+ AddHandler fcgid-script .<%= passing_extension %>
+ </IfModule>
+
<% end -%>
<% if ssl_mode == 'force' && vhost_part == :normal -%>
RewriteEngine On