Skip to content

Commit

Permalink
Change the site-include regexp to work better with Debian/Ubuntu as i…
Browse files Browse the repository at this point in the history
…t is commonly used practice to omit the '.conf' part on vhost files.
  • Loading branch information
Thomas Steinert committed Jun 3, 2014
1 parent b02d29e commit 78ee7ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion spec/classes/apache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@
it { should contain_file("/etc/httpd/conf/httpd.conf").with_content %r{^IncludeOptional "/etc/httpd/conf\.d/\*\.conf"$} }
end

it { should contain_file("/etc/httpd/conf/httpd.conf").with_content %r{^Include "/etc/httpd/site\.d/\*\.conf"$} }
it { should contain_file("/etc/httpd/conf/httpd.conf").with_content %r{^Include "/etc/httpd/site\.d/\*"$} }
it { should contain_file("/etc/httpd/conf/httpd.conf").with_content %r{^Include "/etc/httpd/mod\.d/\*\.conf"$} }
it { should contain_file("/etc/httpd/conf/httpd.conf").with_content %r{^Include "/etc/httpd/mod\.d/\*\.load"$} }
end
Expand Down
2 changes: 1 addition & 1 deletion templates/httpd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ IncludeOptional "<%= @confd_dir %>/*.conf"
Include "<%= @confd_dir %>/*.conf"
<%- end -%>
<% if @vhost_load_dir != @confd_dir -%>
Include "<%= @vhost_load_dir %>/*.conf"
Include "<%= @vhost_load_dir %>/*"
<% end -%>

<% if @error_documents -%>
Expand Down

0 comments on commit 78ee7ff

Please sign in to comment.