• Ошибка 404 при перезагрузке страницы nginx + vue. Как исправить?

    @VyacheslavWebDev Автор вопроса
    dodo512,
    :/var/www/public_html$ ls
    assets favicon.ico img index.html
  • Ошибка 404 при перезагрузке страницы nginx + vue. Как исправить?

    @VyacheslavWebDev Автор вопроса
    vue-access-log:

    ip - - [07/Sep/2022:21:38:50 +0300] "GET /ProductsHealth HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:38:54 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:38:55 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:39:13 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:39:16 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:39:43 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36"
    ip - - [07/Sep/2022:21:39:44 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:39:44 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"
    ip - - [07/Sep/2022:21:40:13 +0300] "GET / HTTP/1.1" 500 588 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"


    vue-error-log:

    2022/09/07 21:38:50 [error] 2784166#2784166: *1 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET /ProductsHealth HTTP/1.1", host: "serverip"
    2022/09/07 21:38:54 [error] 2784166#2784166: *2 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:38:55 [error] 2784166#2784166: *3 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:39:13 [error] 2784220#2784220: *1 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:39:16 [error] 2784220#2784220: *2 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:39:43 [error] 2784220#2784220: *4 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:39:44 [error] 2784220#2784220: *3 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:39:44 [error] 2784220#2784220: *5 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"
    2022/09/07 21:40:13 [error] 2784220#2784220: *6 rewrite or internal redirection cycle while internally redirecting to "/index.html", client: ip, server: serverip, request: "GET / HTTP/1.1", host: "serverip"