httpd.confを見ると、「AllowOverride None」と表示されますが、これを「AllowOverride All」に変更しますが、以下のパペットマニフェストでこれを行います。Puppet Manifest経由でApacheでAllowOverrideを有効にするにはどうすればよいですか?
私はこれを 'ディレクトリ'で試みましたが、動作しません。この例でAllowOverrideをAllに変更する正しい方法は何ですか?
のhttpd.conf
# ************************************
# Vhost template in module puppetlabs-apache
# Managed by Puppet
# ************************************
<VirtualHost *:443>
ServerName test.example.com
## Vhost docroot
DocumentRoot "/var/www/html"
## Directories, there should at least be a declaration for /var/www/html
<Directory "/var/www/html">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
apache.pp
apache::vhost { 'test.example.com':
port => '443',
docroot => '/var/www/html',
ssl => true,
ssl_cert => "${ssl_base}/ssl.crt",
ssl_key => "${ssl_base}/ssl.key",
directories => [
{
'path' => '/var/www/html',
'options' => 'Indexes FollowSymLinks',
'allowoverride' => 'All',
},
],
}
}
を経由して、それを渡すことができますそのファイルに使用されている.conf.erbの場合、 'AllowOverride'の値は' None'にハードコードされています。あなたは 'apache'モジュール以外の変更を行う別の方法を模索する必要があります。テンプレートを変更したり、 'file_line'を使ったり、新しい' file'リソースを作成したりすることができます。 –
また、欠けている機能をApacheモジュールに追加するというプルリクエストを起こすこともできます。 –