Asp.net core application at path : www.my-domain.com/path-of-my-application/.... RRS feed

  • Question

  • User1498264469 posted


    I want to build an asp.net core application in a docker container hosted in kubernetes.

    My application works perfectly on my machine at url http://localhost:12345/ but, in my kubernetes cluster the path has to be www.my-domain.com/path-of-my-application/ as the domain is shared with an existing application.

    The only solution I have is to create a sub domain like http://my-new-app.my-domain.com/ but this creates some problems and I would really prefer to find a way to reconfigure the root path of this new application.

    I already tried this but it does not seems to work :


    but when I call @Url.Content("~") in a view the values is still "/" instead "/path-of-my-application"

    Saturday, December 14, 2019 10:20 PM

All replies

  • User711641945 posted

    Hi kbi753,

    How do you write the launchsetting.json and dockerfile?Could you share them without revealing privacy?

    Best Regards,


    Monday, December 16, 2019 6:53 AM