Which may or may not work when hosting under a Custom Path in IIS, alternatively you can specify a custom base path with by configuring Config.HandlerFactoryPath in your AppHost:
Thanks you for your help – I am looking to deploy the application at multiple endpoints in IIS and the PathBase can only be set once (I would need to override it for every endpoint), so this will not work for me.
The HandlerFactoryPath won’t help me as it modifies the path relative to the endpoint (I have used this is the past to host at api when combining with MVC etc).
I think I will have to work around by putting a page at / that will redirect to the ui.
Another potential solution would be to override GetBaseUrl(IRequest) in your AppHost to return the correct Base URL for the incoming request which should be able to support dynamic requests.