memorysafety / river

This repository is the home of the River reverse proxy application, based on the pingora library from Cloudflare.
https://www.memorysafety.org/initiative/reverse-proxy/
Apache License 2.0
1.93k stars 108 forks source link

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

Open jamesmunns opened 2 months ago

jamesmunns commented 2 months ago

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

XiNiHa commented 2 months ago

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

allan2 commented 1 month ago

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