我正尝试在同一个VPS上运行React应用程序和NodeJS应用程序,但所有对Express应用程序(NodeJS)的应用程序接口调用都给我错误404not found。我使用的是nginx,下面是我的配置文件: # Default server configurationserver { listenserver_name domain_name.org w
我正在使用ui-routes和nginx实现angular静态应用程序作为web服务器。我的Angular路由代码:$locationProvider.html5Mode({ index index.html index.htm;当我在浏览器地址栏中键入localhost时,它将重定向到我的站点主页当
路由不起作用。我一直在找原因,但我找不到问题所在。在服务器运行的情况下,我在postman上不断收到404错误。这是我的server.jsconst mongoose = require('mongoose');
app.listen(port, () => console.log(`Server started on port ${po