L
L
lssssssssssl2022-01-11 19:47:12
Nginx
lssssssssssl, 2022-01-11 19:47:12

404 not found. Why can't nginx see this static url?

61ddb45ae89f8617329559.png
If you go with /, and by clicking on the button, go to /managespeech, then everything works, and if you then reload the page, then this is already61ddb4843911d039228188.png

user  nginx;
worker_processes  2;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;

events {
    worker_connections  1024;
}

http {
    server {
    
        root /www/data;
    
        sendfile_max_chunk 50m;
        
        try_files $uri $uri/ $uri.html =404;
    }
}


ps The code is inserted by copy-paste from the docks

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2022-01-11
@ky0

Well, compare in the console what happens when you click on the button and when you just follow the URL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question