Skip to content

Commit

Permalink
Merge pull request #1399 from noris-network/fastcgi-idle-timeout
Browse files Browse the repository at this point in the history
Added vhost option fastcgi_idle_timeout
  • Loading branch information
hunner committed Apr 14, 2016
2 parents 71cb730 + 71958f2 commit c55a04c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -2100,6 +2100,10 @@ Specifies if the virtual host is present or absent. Valid options: 'absent', 'pr

Sets the [FallbackResource](https://httpd.apache.org/docs/current/mod/mod_dir.html#fallbackresource) directive, which specifies an action to take for any URL that doesn't map to anything in your filesystem and would otherwise return 'HTTP 404 (Not Found)'. Valid options must either begin with a '/' or be 'disabled'. Default: undef.

#####`fastcgi_idle_timeout`

If using fastcgi, this option sets the timeout for the server to respond.

##### `filters`

[Filters](https://httpd.apache.org/docs/current/mod/mod_filter.html) enable smart, context-sensitive configuration of output content filters.
Expand Down
2 changes: 2 additions & 0 deletions manifests/vhost.pp
Expand Up @@ -116,6 +116,7 @@
$fastcgi_server = undef,
$fastcgi_socket = undef,
$fastcgi_dir = undef,
$fastcgi_idle_timeout = undef,
$additional_includes = [],
$use_optional_includes = $::apache::use_optional_includes,
$apache_version = $::apache::apache_version,
Expand Down Expand Up @@ -945,6 +946,7 @@
# - $fastcgi_server
# - $fastcgi_socket
# - $fastcgi_dir
# - $fastcgi_idle_timeout
# - $apache_version
if $fastcgi_server or $fastcgi_dir {
concat::fragment { "${name}-fastcgi":
Expand Down
1 change: 1 addition & 0 deletions spec/defines/vhost_spec.rb
Expand Up @@ -334,6 +334,7 @@
'fastcgi_server' => 'localhost',
'fastcgi_socket' => '/tmp/fastcgi.socket',
'fastcgi_dir' => '/tmp',
'fastcgi_idle_timeout' => '120',
'additional_includes' => '/custom/path/includes',
'apache_version' => '2.4',
'use_optional_includes' => true,
Expand Down
3 changes: 2 additions & 1 deletion templates/vhost/_fastcgi.erb
@@ -1,6 +1,7 @@
<% if @fastcgi_server -%>

FastCgiExternalServer <%= @fastcgi_server %> -socket <%= @fastcgi_socket %>
FastCgiExternalServer <%= @fastcgi_server %> -socket <%= @fastcgi_socket -%>
<% unless @fastcgi_idle_timeout.nil? %> -idle-timeout <%= @fastcgi_idle_timeout %><% end %>
<% end -%>
<% if @fastcgi_dir -%>

Expand Down

0 comments on commit c55a04c

Please sign in to comment.