why do i get redirected to /login?

hey guys. i have java spring app. it has this websecurity config chain:
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        http
                .authorizeRequests()
                .antMatchers("/sol/createPaymentInformation").permitAll()
                .antMatchers("/sol/createPaymentConfirmation").permitAll()
                .antMatchers("/sol/createPaymentReversal").permitAll()
                .anyRequest().authenticated()
                .and().formLogin().loginPage("/login").permitAll()
                .and().logout().permitAll()
                .and().csrf().disable();
    }

  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:
"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 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.
Was this page helpful?