apache2moduserdir

March 17, 2026 ยท View on GitHub

Back to resource list

Manages the Apache mod_userdir configuration file, which enables per-user web directories.

Actions

ActionDescription
:createCreate the configuration.

Properties

NameTypeDefaultDescription
public_html_dirString'/home/*/public_html'UserDir directive โ€” path to user public HTML directories.
optionsString'MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec'Directory options for user directories.
allow_overrideString'FileInfo AuthConfig Limit Indexes'AllowOverride settings. See https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride

Examples

apache2_mod_userdir '' do
  public_html_dir '/home/*/public_html'
end