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

想在nginx日志中记录404信息,目前访问不存在页面返回都是200 #3772

Open
lyle336699 opened this issue Jul 29, 2021 · 0 comments

Comments

@lyle336699
Copy link

请教大家一个问题

目前需求是,想在后端捕获到404的信息,但是前端访问一个不存在的页面,

返回的值都是200,无法在nginx或者控制台中捕获404信息

请问大家,这个是哪里设置的呢?

router中的重定向我已经注释,但是只是404页面不提示,请求返回还是200

` // 404 page must be placed at the end !!!

// { path: '*', redirect: '/404', hidden: true }

`

谢谢大佬

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

1 participant