NanoHttpd / nanohttpd

Tiny, easily embeddable HTTP server in Java.
http://nanohttpd.org
BSD 3-Clause "New" or "Revised" License
6.9k stars 1.69k forks source link

How to deploy an Angular 8 application on nanohttpd? #558

Open radici opened 4 years ago

radici commented 4 years ago

How to deploy an Angular 8 application on nanohttpd? There is a rewrite rule config file like .htaccess for apache? How to implement this to redirect all route to index.html Thanks Angelo radici

LordFokas commented 4 years ago

I've implemented a Virtual File System in my case. I had a dynamic router that answered HTTP requests in Nano and I'd usually map any /resources/foo/bar.baz request straight to the foo/bar.baz file on disk... with the appropriate checks and mappings of course.