title: Spring Cloud Eureka: changing heartbeat and discovery path
body: <p>I am unable to conjure up a property to change the heartbeat and discovery context for the Eureka server from the ConfigBeans located in github: <a href="https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka" rel="nofollow">https://github.com/spring-cloud/spring-cloud-netflix/tree/master/spring-cloud-netflix-core/src/main/java/org/springframework/cloud/netflix/eureka</a></p>
  
  <p>Seems I'm able to set the context path within the client, but not the server.  For example, with a client configured as:</p>
  
  <pre><code>eureka:
    instance:
      statusPageUrlPath: /admin/info
      healthCheckUrlPath: /admin/health
      homePageUrlPath: /admin/dashboard
    client:
      registerWithEureka: false
      fetchRegistry: false
      eurekaServerUrlContext: /admin
      serviceUrl:
        defaultZone: http://localhost:8761/admin/eureka/
    server:
      waitTimeInMsWhenSyncEmpty: 0
    dashboard:
       path: /admin/dashboard 
  </code></pre>
  
  <p>There seems to be nothing in <code>EurekaServerConfigBean</code> for me to modify on the server to change the context to <code>/admin</code>.  When I run my clients, I get:</p>
  
  <pre><code>2015-07-23 12:18:32.069 ERROR 18894 --- [pool-7-thread-1] com.netflix.discovery.DiscoveryClient    : Can't get a response from http://localhost:8761/admin/eureka/apps/
  Can't contact any eureka nodes - possibly a security group issue?
  </code></pre>