最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Returns 404 for only 1 route via nginx - Stack Overflow

programmeradmin1浏览0评论

this is my nginx.conf file, my react app is hosted on nginx and calling api endpoints, my api end points starts something like this https://export. https://report. etc. 9 out of 10 endpoints are working, only for one endpoint its giving 404.

server {
    listen 80;
    location / {
        root /usr/share/nginx/html;
        index index.html index.htm;
        try_files $uri $uri/ /index.html =404;
    }
}
发布评论

评论列表(0)

  1. 暂无评论