Serve A Local Directory With 404 Not Found Error Fallback With Rust's axum And tower - http
rust
```cargo
= "0.7.5"
tokio =
tower-http =
```
use Router;
use Path;
use ServeDir;
use ServeFile;
async
axum
This is how I'm serving files from a directory on a local web server. The code also provides a custom 404 page not found fallback file.
Footnotes And References
- •
- •
- •
- •