why do i get redirected to /login?
hey guys. i have java spring app. it has this websecurity config chain:
1. when i launch my app on computer, my endpoints are called fine.
2. when i deploy my app to the server, the endpoints arent being called - i get 404
i have nginx on the server. i opened nginx access log:
i dont understand why its being redirected to
/login
. can smb help me out? as i understand its smth with nginx, not the java app itself.7 Replies
⌛
This post has been reserved for your question.
Hey @Fragmented friends! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically marked as dormant after 300 minutes of inactivity.
Does nginx actually forward the requests to the server? How is it deployed?
What is redirected to /login? I only see 404s
when you said
How is it deployed?
what is it
?the application
its jar file
Check whether nginx actually forwards the requests and where
you mean this?
"POST /bgw/sol/createPaymentInformation HTTP/1.1" 302 0 "-" "PostmanRuntime/7.43.0"
"GET /login HTTP/1.1" 404 146 "http://myserver.lv/bgw/sol/createPaymentInformation" "PostmanRuntime/7.43.0"