I have two web sites developed using Aspnet core 3.1 Razor Pages, hosted by kestrel. Example:
https://localhost:50001/*
https://localhost:50002/*
There is no problem when running in debug mode. However in production I would like to do the old IIS method where we can add a virtual directory to the URL. Example:
https://example.com/MyAppA/*
https://example.com/MyAppB/*
I knew kestrel cannot do this, but I can't use IIS as well because I need to deploy these web site in non windows environment.
May I know if it is possible for me to modify the routing in Razor Pages to add the MyAppA or MyAppB in my code?
The simplest way of doing so is to move all the pages in [solution]\Pages\* to [solution]\Pages\MyAppA\*, but I will keep this as an last option.
Thanks