]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - 3rdparty/modules/apache/templates/vhost/_fastcgi.erb
add Openstack modules to 3rdparty
[dsa-puppet.git] / 3rdparty / modules / apache / templates / vhost / _fastcgi.erb
diff --git a/3rdparty/modules/apache/templates/vhost/_fastcgi.erb b/3rdparty/modules/apache/templates/vhost/_fastcgi.erb
new file mode 100644 (file)
index 0000000..3a2baa5
--- /dev/null
@@ -0,0 +1,22 @@
+<% if @fastcgi_server -%>
+
+  FastCgiExternalServer <%= @fastcgi_server %> -socket <%= @fastcgi_socket %>
+<% end -%>
+<% if @fastcgi_dir -%>
+
+  <Directory "<%= @fastcgi_dir %>">
+    Options +ExecCGI
+    AllowOverride All
+    SetHandler fastcgi-script
+  <%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
+    Require all granted
+  <%- else -%>
+    Order allow,deny
+    Allow From All
+  <%- end -%>
+    AuthBasicAuthoritative Off
+  </Directory>
+
+  AllowEncodedSlashes On
+  ServerSignature Off
+<% end -%>