These are chat archives for spring-cloud/spring-cloud

27th
Nov 2016
Ali Akbar Azizkhani
@removed~azizkhani
Nov 27 2016 08:01
hi all
i using zuul in my project
when request /app subservice redirect to login.jsp because user is not authenticate but redirect to subservice ip not zuul ip
    zuul:
      ignoreSecurityHeaders: false
      routes:
        trp:
          path: /app/**
          sensitiveHeaders:
          url: http://192.168.251.141:5050/app

        sho:
          path: /sho/**
          sensitiveHeaders:
          url: http://192.168.251.141:9999/app/
    server:
        compression:
            enabled: true
        port: 80
when i request 127.0.0.1/app/index.jsp ---redirect to http://192.168.251.141:5050/app/login.jsp
but i expect to show 127.0.0.1/app/login.jsp
Dave Syer
@dsyer
Nov 27 2016 08:17
It depends on the back end app. It is responsible for writing the redirect location.
If it's a spring app I'd expect it to do that in the right way for your use case.
If it's not spring I guess you need to ask yourself about that stack
The proxy puts x-forwarded-... headers in the downstream request
Ali Akbar Azizkhani
@removed~azizkhani
Nov 27 2016 16:46
@dsyer my application is spring app and using form base authenticate .
my current reverse proxy is nginx and nginx working ok
why zuul dose not redirect response content instead of redirect to new location