Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
How to add auto-index to any directory for site hosted on Octopus instance?
Use (and clone if needed) this snippet in your /data/disk/USER/config/server_master/nginx/post.d/nginx_vhost_include.conf file:
#---#
location ~* /uri/of/auto/indexed/dir {
autoindex on;
}
#---#
See also: http://drupalcode.org/project/octopus.git/blob/HEAD:/docs/HINTS.txt#l16
You can use the same snippet in your custom vhost for any non-drupal site.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment