Skip to content

Commit 9190834

Browse files
authored
Merge pull request #1975 from gcoxmoz/proxytimeout
Change mod_proxy's ProxyTimeout to follow Apache's global timeout
2 parents 940dc4e + 8bd7138 commit 9190834

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

manifests/mod/proxy.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
$apache_version = undef,
2828
$package_name = undef,
2929
$proxy_via = 'On',
30-
$proxy_timeout = '60',
30+
$proxy_timeout = undef,
3131
) {
3232
include ::apache
33+
$_proxy_timeout = $apache::timeout
3334
$_apache_version = pick($apache_version, $apache::apache_version)
3435
::apache::mod { 'proxy':
3536
package => $package_name,

templates/mod/proxy.conf.erb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
# Set to one of: Off | On | Full | Block
2626
ProxyVia <%= @proxy_via %>
2727

28+
<%- if @proxy_timeout -%>
2829
ProxyTimeout <%= @proxy_timeout %>
30+
<%- end -%>
2931
</IfModule>

0 commit comments

Comments
 (0)