Manages the Apache mod_userdir configuration file, which enables per-user web directories.
| Action | Description |
|---|---|
| :create | Create the configuration. |
| Name | Type | Default | Description |
|---|---|---|---|
| public_html_dir | String | '/home/*/public_html' |
UserDir directive — path to user public HTML directories. |
| options | String | 'MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec' |
Directory options for user directories. |
| allow_override | String | 'FileInfo AuthConfig Limit Indexes' |
AllowOverride settings. See https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride |
apache2_mod_userdir '' do
public_html_dir '/home/*/public_html'
end