-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pass this through to directories. #539
Conversation
When index_options is passed in apache::vhost, it should end up in |
@anyone-can-test Did you want this option to be in the main vhost or inside directories exclusively? |
Really, the |
The current code allows you to set index_options but then ignores it. Based on the git log for the commit that added this option it was intended to be passed into directories. The test that caught this will be merged into spec/acceptance/vhost_spec.rb in a seperate PR. You can reproduce the original failure with: class { 'apache': } host { 'test.server': ip => '127.0.0.1' } apache::vhost { 'test.server': docroot => '/tmp', index_options => ['Charset=UTF-8'], } We're just going to remove them because they can be passed directly into directory instead of indirectly.
@hunner Yeah, sold. |
I'm not sure if index_options can be used under apache:vhost. |
if index_options, index_order_default is removed, how can I add IndexOptions, IndexOrderDefault to Directory setting? |
To reiterate, IndexOptions can be set in server, vhost, and directory context (also .htaccess, but we don't care). This means: Someone may want to set it on the entire vhost, and then tweak or disallow it on one specific directory. At the risk of sounding like a broken record, I think we need a general way of handling that: #477 |
@igalic I just want to make sure you know I completely agree that we need a general way to handle this stuff, I'm just trying to do the absolute minimum I can to get a fully passing test suite in the short term for our internal needs. ::vhost in general needs some serious work on generalized reusable ways to do stuff. |
@anyone-can-test Oh okay. The apache::vhost { 'myhost':
#...
directories => [
{
'path' => '/srv/web',
'index_options' => 'IgnoreCase',
},
],
} only contains one |
Pass this through to directories.
The current code allows you to set index_options but then ignores it.
Based on the git log for the commit that added this option it was
intended to be passed into directories. The test that caught this
will be merged into spec/acceptance/vhost_spec.rb in a seperate PR.
You can reproduce the original failure with: