Skip to content

Commit

Permalink
Merge pull request #714 from mhaskel/pagespeed
Browse files Browse the repository at this point in the history
Use access_compat on 2.4, and update pagespeed to load the correct modul...
  • Loading branch information
hunner committed May 2, 2014
2 parents ca03c51 + 15b3adc commit 492ef10
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions manifests/default_mods.pp
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,9 @@

# filter is needed by mod_deflate
::apache::mod { 'filter': }

# lots of stuff seems to break without access_compat
::apache::mod { 'access_compat': }
} else {
::apache::mod { 'authz_default': }
}
Expand Down
10 changes: 8 additions & 2 deletions manifests/mod/pagespeed.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@
$additional_configuration = {},
){

apache::mod { 'pagespeed': }
$_lib = $::apache::apache_version ? {
2.4 => 'mod_pagespeed_ap24.so',
default => undef
}

apache::mod { 'pagespeed':
lib => $_lib,
}

file { 'pagespeed.conf':
ensure => file,
Expand All @@ -44,5 +51,4 @@
before => File[$::apache::mod_dir],
notify => Service['httpd'],
}

}

0 comments on commit 492ef10

Please sign in to comment.