Skip to content
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

index_files to be defined at server level if specified in resource::vhost #204

Merged
merged 2 commits into from
Dec 19, 2013

Conversation

grooverdan
Copy link
Contributor

This partially avoids pitfall #2 (http://wiki.nginx.org/Pitfalls)

Perhaps this should only go there if specified by the user than because of the default index_files value? Thoughts welcome?

@@ -31,6 +31,9 @@ server {
return 301 https://$host$request_uri;
}
<% end -%>
<% if @index_files -%>
index <% @index_files.each do |i| %> <%= i %><% end %>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if this isn't an array? Can you cast it as such using Array()?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was going off the vhost_location_directory.erb implementation so all fixed now.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@jfryman
Copy link
Contributor

jfryman commented Dec 19, 2013

Sweeeeet!

jfryman pushed a commit that referenced this pull request Dec 19, 2013
index_files to be defined at server level if specified in resource::vhost
@jfryman jfryman merged commit ee70673 into voxpupuli:master Dec 19, 2013
@grooverdan grooverdan deleted the index_files_to_serverlevel branch December 19, 2013 19:51
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
…level

index_files to be defined at server level if specified in resource::vhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants