I tested it already writing a failure handler right after the static handler, but problem is whatever is the request url it opens the index.html, which is not what is the fix .
I want to summarize the problem again, (Note : angular route loads the template construction html)
1) first visit the index page.
3) now press browser back button takes you to index page and forward back to construction page. (In short browser history works)
4) Now stand in
http://localhost:8080/construction and hit refresh page and history doesn't work anymore. If I fix it the above code way it route to index page always rather than going to construction page.
So after fixing though it doesn't return 404 it does not open the construction page anymore.
Some of the fix for apache and ngnix are below but not sure about vertx.
Thanks again!