Skip to content

Commit

Permalink
RewriteLock support
Browse files Browse the repository at this point in the history
added ability to define a RewriteLock file in the httpd.conf for apache version 2.2
  • Loading branch information
wickedOne committed Oct 16, 2015
1 parent 9c1047d commit f10e309
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
$conf_template = $::apache::params::conf_template,
$servername = $::apache::params::servername,
$pidfile = $::apache::params::pidfile,
$rewrite_lock = false,
$manage_user = true,
$manage_group = true,
$user = $::apache::params::user,
Expand Down
4 changes: 4 additions & 0 deletions templates/httpd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ KeepAlive <%= @keepalive %>
MaxKeepAliveRequests <%= @max_keepalive_requests %>
KeepAliveTimeout <%= @keepalive_timeout %>

<%- if @rewrite_lock and scope.function_versioncmp([@apache_version, '2.2']) <= 0 -%>
RewriteLock <%= @rewrite_lock %>
<%- end -%>

User <%= @user %>
Group <%= @group %>

Expand Down

0 comments on commit f10e309

Please sign in to comment.