Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

重要bug, 重新打开页面就会404 #59

Open
xx-zhang opened this issue Aug 17, 2022 · 3 comments
Open

重要bug, 重新打开页面就会404 #59

xx-zhang opened this issue Aug 17, 2022 · 3 comments

Comments

@xx-zhang
Copy link

bug太多,

  1. 无故404;表单异常退出
  2. api接口访问后无法持续保留
  3. exam接口详情无法打开
  4. 功能不齐全,增加相关的内容还需要 alter/update/delete 数据库操作;功能不完善。
@renanmin
Copy link

renanmin commented Aug 17, 2022 via email

@xx-zhang
Copy link
Author

image

ka卡片无法使用;接口404,界面也不友好,推荐使用其他的版本,也不要啥前后端分离了。

@xx-zhang
Copy link
Author

我用的是 npm run build 的 dist的部署方式,总是404,看了接口也没错啊,为啥解析不到。

image


server {
        include custom-error-page.conf;

        listen 0.0.0.0:2443 ssl;
        listen [::]:2443 ssl;
        server_name  localhost;

        #index index.jsp index.action index.htm index.html;

        ssl_session_timeout  5m;
        #ssl_protocols TLSv1.3;

        # TODO 默认普通证书
        ssl_certificate_key https.key;
        ssl_certificate https.pem;

        # TODO 双证书。
        ssl_prefer_server_ciphers on;
        ssl_protocols TLSv1.2 TLSv1.3;
        #ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:AES128-SHA:DES-CBC3-SHA:ECC-SM4-SM3:ECDHE-SM4-SM3:SM2-WITH-SMS4-SM3:ECDHE-SM2-WITH-SMS4-GCM-SM3;
        ssl_verify_client off;

        error_page 497 https://$server_name$request_uri;
        proxy_set_header   Host             $host;
        proxy_set_header   X-Real-IP        $remote_addr;
        proxy_set_header   X-Forwarded-For  $proxy_add_x_forwarded_for;
        proxy_set_header   X-Forwarded-Scheme $scheme;
        proxy_next_upstream http_502 http_504 error timeout invalid_header;
        proxy_redirect http:// $scheme://;
        port_in_redirect on;
        proxy_read_timeout 1200;

        proxy_intercept_errors off;
        proxy_hide_header Server;

        # 适配 websocket
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";

        location / {
           index index.html;
           root /home/exam/dist;
        }

        location /api/ {
           proxy_pass http://127.0.0.1:9527/api/;

        }



    }

@xx-zhang xx-zhang changed the title 不要使用:完全无法用。 重要bug, 重新打开页面就会404 Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants