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

Serve index.html when user requests folder path in static file hosting #69

Open
jamesmunns opened this issue Sep 1, 2024 · 2 comments
Labels
F-StaticFiles Functionality relating to static file serving

Comments

@jamesmunns
Copy link
Collaborator

If we are serving static files and the user GETs a folder path URI like /, we should probably automatically serve /index.html.

@jamesmunns jamesmunns added the F-StaticFiles Functionality relating to static file serving label Sep 1, 2024
@XiNiHa
Copy link

XiNiHa commented Sep 26, 2024

Worth mentioning this I guess: https://bjornlu.com/blog/trailing-slash-for-frameworks#servers

@allan2
Copy link

allan2 commented Oct 10, 2024

I have a setup for this in my Pingora app. PR incoming

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-StaticFiles Functionality relating to static file serving
Projects
None yet
Development

No branches or pull requests

3 participants