apache2modalias

March 17, 2026 ยท View on GitHub

Back to resource list

Manages the Apache mod_alias configuration file.

Actions

ActionDescription
:createCreate the configuration.

Properties

NameTypeDefaultDescription
optionsArray['Indexes', 'MultiViews', 'SymLinksIfOwnerMatch']Options for the alias directory block.
icondirStringplatform-specific (see helpers.rb)The icon directory path.
allow_overrideArray['None']AllowOverride settings. See https://httpd.apache.org/docs/2.4/mod/core.html#allowoverride
requireString'all granted'Require directive. See https://httpd.apache.org/docs/2.4/mod/mod_authz_core.html#require

Examples

apache2_mod_alias '' do
  options %w(Indexes MultiViews SymLinksIfOwnerMatch)
end