How to alias this route in Spring Cloud? -
the code @ this github link defines 3 interconnected spring boot apps using spring cloud , spring oauth2. there ui
app loads default @ localhost:8080
, , there authserver
authentication app runs on localhost:9999
. when user tries login ui
app on localhost:8080
, redirected localhost:9999/uaa/login
.
this run on apache, ui
app @ mydomain.com
. imagine create virtualhost mydomain.com/login
, map authorization app url pattern. want spring cloud manage urls.
what specific changes need make code in these sample apps login page render @ localhost:8080/login
instead of localhost:9999/uaa/login
?
i tried changing zuul route definition in the ui
app's application.yml
following, clicking login link ui
app still redirects localhost:9999/uaa/login
:
zuul: routes: resource: path: /resource/** url: http://localhost:9000/resource user: path: /user/** url: http://localhost:9999/uaa/user login: path: /login** url: http://localhost:9999/uaa/login
the link index.html login
, login
redirect localhost:9999/uaa/login
must specified somewhere else. there no reference login
inside hello.js
. so changes need made spring cloud serves login
functionality aliased within localhost:8080/login
?
Comments
Post a Comment