Skip to content

Commit

Permalink
Merge pull request #820 from mhaskel/vhost_fixes
Browse files Browse the repository at this point in the history
Fix dependency loop in vhost
  • Loading branch information
Ashley Penney committed Aug 14, 2014
2 parents e48b509 + 15a6687 commit 445fdc7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions manifests/vhost.pp
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@
ensure => directory,
mode => $logroot_mode,
require => Package['httpd'],
before => File["${priority_real}-${filename}.conf"],
}
}

Expand Down Expand Up @@ -541,10 +542,7 @@
owner => 'root',
group => $::apache::params::root_group,
mode => '0644',
require => [
Package['httpd'],
File[$logroot],
],
require => Package['httpd'],
notify => Service['httpd'],
}
if $::osfamily == 'Debian' {
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/vhost_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ class { 'apache': }
comment => 'Permalink Rewrites',
rewrite_base => '/',
},
{ rewrite_rule => [ '^index\.php$ - [L]' ] },
{ rewrite_rule => [ '^index\\.php$ - [L]' ] },
{ rewrite_cond => [
'%{REQUEST_FILENAME} !-f',
'%{REQUEST_FILENAME} !-d', ], rewrite_rule => [ '. /index.php [L]' ], }
Expand Down

0 comments on commit 445fdc7

Please sign in to comment.