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

main class has no autoindex implementation #229

Closed
bionix opened this issue Jan 9, 2014 · 2 comments
Closed

main class has no autoindex implementation #229

bionix opened this issue Jan 9, 2014 · 2 comments
Labels
needs-feedback Further information is requested

Comments

@bionix
Copy link
Contributor

bionix commented Jan 9, 2014

Hello,
the main class (init.pp) has no autoindex option for configuration. Currently I have no idea to implement the "define" in the main class, because the function create_ressources needs hash values (see https://github.com/jfryman/puppet-nginx/blob/master/manifests/init.pp#L137).

Currently I use the implementation for autoindex in the subclasses of puppet-nginx a string as a option value.
I'm looking for a solution. Any idea?

@dhoppe
Copy link
Member

dhoppe commented Sep 17, 2016

Hello,

can you give us an example? I am not sure what you try to achieve. It is possible to configure autoindex in context of an location or vhost.

@dhoppe dhoppe added the needs-feedback Further information is requested label Sep 17, 2016
@wyardley
Copy link
Collaborator

wyardley commented Oct 7, 2016

As @dhoppe says, it is possible to set autoindex in vhost or location context. I'm going to close this one for now.

Somewhat sanitized hiera example:

nginx::nginx_vhosts:
  'foo.example.net':
    www_root: /var/www/
    server_name:
      - 'foo.example.net'
    autoindex: 'on'

@wyardley wyardley closed this as completed Oct 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-feedback Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants