Sunday 13 March 2016

Get Nginx (reverse proxy) to display a website if the user hits "/" instead of one of my node app routes?

Hi allI have a node app sitting behind a nginx reverse proxy.The node app accepts API calls on routes like "/api/1" and "/api/2".Therefore, I have no "/" route.I know I could set up a route for "/" and have that return a website, but I have a feeling there is a better way to do this, i.e. nginx returns the website.Have any of you done this before? Could you point me in the right direction on how to do it?Thanks.

Submitted March 13, 2016 at 02:15PM by MEAN_questions

No comments:

Post a Comment