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.14 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"
I meant the part between nginx and Spring
I want to see what happens there
This seems perfectly fine - is this not what you expect?
thats correct
Is this a request forwarded with nginx?
um, i dont know. nginx is a thing for handling requests. so i guess yes
or maybe i dont really understand ur question
check it
use Spring's logging to find out what request is retrieved
using nginx
thanks. i fixed it now. it was config inconsistency
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived.
If your question was not answered yet, feel free to re-open this post or create a new one.
In case your post is not getting any attention, you can try to use /help ping
.
Warning: abusing this will result in moderative actions taken against you.