spring-cloud / spring-cloud-netflix

Integration with Netflix OSS components
http://cloud.spring.io/spring-cloud-netflix/
Apache License 2.0
4.87k stars 2.44k forks source link

Zuul, Spring MVC and trailing slash #1475

Closed marvindaviddiaz closed 7 years ago

marvindaviddiaz commented 7 years ago

I have the same error as the incident #919 (Closed by inactivity)

zuul:
    routes:
      security-view-angular: 
        path: /security-view-angular/**
        service-id: security-view-angular
        strip-prefix: false

When I go to: http://localhost:8080/security-view-angular/, everything is ok. But, when I go to: http://localhost:8080/security-view-angular (without last slash) zuul redirect me to http://172.16.5.79:9080/security-view-angular/

spencergibb commented 7 years ago

Did you see https://github.com/spring-cloud/spring-cloud-netflix/issues/919#issuecomment-206960282

spencergibb commented 7 years ago

zuul doesn't do redirects. It's probably tomcat.

spencergibb commented 7 years ago

See https://github.com/spring-cloud/spring-cloud-netflix/issues/919#issuecomment-261173286