Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Display INDEX_DOCUMENT if exists and DIRECTORY_LISTINGS=true #43

Open
EvgeniGordeev opened this issue Apr 15, 2020 · 2 comments
Open

Display INDEX_DOCUMENT if exists and DIRECTORY_LISTINGS=true #43

EvgeniGordeev opened this issue Apr 15, 2020 · 2 comments

Comments

@EvgeniGordeev
Copy link

Feature or enhancement request

It's a feature enhancement to display folder content or index.html if exists. New variable DIRECTORY_LISTINGS_CHECK_INDEX is introduced to control the behavior.

Given s3 bucket content:

├── folder
├── ── subfolder1
│   └────  index.html
├── ── subfolder2
│   └────  index.html
└── index.html

Desired result if DIRECTORY_LISTINGS=true and DIRECTORY_LISTINGS_CHECK_INDEX=true:
GET / returns /index.html content
GET /folder/ returns list of folders - [subfolder1, subfolder2]
GET /folder/subfolder1 returns /folder/subfolder1/index.html content
GET /folder/subfolder2 returns /folder/subfolder2/index.html content

EvgeniGordeev added a commit to EvgeniGordeev/aws-s3-proxy that referenced this issue Apr 15, 2020
patrickdk77 added a commit to patrickdk77/aws-s3-proxy that referenced this issue Jan 12, 2021
From: Evgeni Gordeev <egordeev@conserviscorp.com>
Date: Wed, 15 Apr 2020 17:01:21 -0500
Subject: [PATCH] Closes pottava#43.
@hverlin
Copy link

hverlin commented Jan 22, 2021

This would be nice indeed!
@pottava Would it be possible to merge this feature?

@tillkuhn
Copy link

This is a very useful enhancement, @pottava pls consider to merge it!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants