A single-page application developed by vue (implementing sub-routing to open new tags in development). After publishing to nginx, sub-routes are opened in the new tags, showing 404.

A single-page application developed by vue (which enables opening sub-routes to be displayed on a new tag) is published and placed in nginx, and sub-routes are opened on the new tag, showing 404

.

clipboard.png

nginx.conf


http {
    include       mime.types;
    default_type  application/octet-stream;

    -sharplog_format  main  "$remote_addr - $remote_user [$time_local] "$request" "
    -sharp                  "$status $body_bytes_sent "$http_referer" "
    -sharp                  ""$http_user_agent" "$http_x_forwarded_for"";

    -sharpaccess_log  logs/access.log  main;

    sendfile        on;
    -sharptcp_nopush     on;

    -sharpkeepalive_timeout  0;
    keepalive_timeout  65;

server {
        listen       8086;
        server_name  localhost;

        -sharpcharset koi8-r;

        -sharpaccess_log  logs/host.access.log  main;

        location / {
            root   html/msh;
            index  index.html index.htm;
        }
        location /msh/screen/syn-map {
            root   html/msh;
            index  index.html index.htm;
        }
       }
     //...****
     }
Mar.10,2021

I don't know if you are missing / /

:href="`//${host}${route.path}`"

location / {
  try_files $uri $uri/ /index.html;
}

nginx plus this. Look at your url,. Your route is in history mode.
for more information, please see History mode

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b31d2f-2bdaa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b31d2f-2bdaa.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?