Skip to content

Commit

Permalink
Merge pull request #1077 from ivaldi/configurable_options_for_userdir
Browse files Browse the repository at this point in the history
Make Options directive configurable for mod userdir
  • Loading branch information
cmurphy committed Mar 26, 2015
2 parents 3fd2131 + 66c6651 commit 53d7c42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions manifests/mod/userdir.pp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
$dir = 'public_html',
$disable_root = true,
$apache_version = $::apache::apache_version,
$options = [ 'MultiViews', 'Indexes', 'SymLinksIfOwnerMatch', 'IncludesNoExec' ],
) {
::apache::mod { 'userdir': }

Expand Down
2 changes: 1 addition & 1 deletion templates/mod/userdir.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<Directory "<%= @home %>/*/<%= @dir %>">
AllowOverride FileInfo AuthConfig Limit Indexes
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Options <%= @options.join(' ') %>
<Limit GET POST OPTIONS>
<%- if scope.function_versioncmp([@apache_version, '2.4']) >= 0 -%>
Require all denied
Expand Down

0 comments on commit 53d7c42

Please sign in to comment.