Why is the nginx proxy_pass agent normal after 404?

problem description

in the configuration file of nginx, after using the proxy_pass proxy, access the address, the first time 404, the second time normal, the third time 404, the fourth time normal, and so on. Is a 404, refresh is normal, and then refresh 404, may I ask why?

related codes

/ / Please paste the code text below (do not replace the code with pictures)

    location /movie/ {
        proxy_pass      https://www.wangqs.com/movies/index.html;
    }
    
    location /category/ {
        proxy_pass     https://www.wangqs.com/category/technology_news;
    }

what result do you expect? What is the error message actually seen?

Jun.25,2021

it's best to send out the HTTP message just by looking at the proxy configuration. It's hard to see what makes


use upstream to post a full look

.
Menu