-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Random port config makes management.context-path invalid #3099
Labels
Comments
Please reopen if you can describe the problem or create a sample that reproduces it |
Flamingo93
changed the title
Config random port
Config random port make management.context-path invalid
Jul 23, 2018
I don't have right to reopen issue closed by repo collaborator. |
Provide the information requested and we will repopen. |
I have update the information. Am I clear? |
This is a duplicate of #3098 |
Flamingo93
changed the title
Config random port make management.context-path invalid
Random port config makes management.context-path invalid
Sep 18, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Config random server port by
Also, I want to customize the prefix for the management endpoints, so I config eureka management.context-path by
Then, I found that default
statusPageUrl
andhealthCheckUrl
from eureka won't work, retrun 404.Default
statusPageUrl
is "host:port/info" and it don't work, but "host:port/manage/info" still work.Checking the source code, I found that in spring-cloud-netflix-eureka-client DefaultManagementMetadataProvider class, it process random port by
It will return null metadata when config port random, so that make default
statusPageUrl
andhealthCheckUrl
invalid.Is it intentional or a bug? If intentional, why? Thx.
The text was updated successfully, but these errors were encountered: