How to setup routes with Express and NGINX?
问题 I'm trying to configure an Express server with NGINX as a reverse proxy. NGINX to serve static files, and Express for the dynamic content. Problem : The normal root link works (website.com) , but when I navigate to (website.com/api), I get a 404 from NGINX This is my server.js : var express = require("express"); var app = express(); var server = app.listen(process.env.PORT || 5000); console.log("Server Running"); app.get("/",function(req,res){res.send("HOME PAGE")}); app.get("/api", function