0
jizhongqi created
Dear All, For normal case, if we deploy a web site to a IIS server, if the server has multiple IPs which connect to different LANs, by default the website is accessible to all the users from the different LANs, but for the ASP.NET CORE & Angular solution, it is no way, because the ServerRootAddress is limited the API service can only available for a specific LAN. if anyone one can help about how to solve this issue? thank you very much.
1 Answer(s)
-
0
hi,
ServerRootAddress is being retrieved from appsettings.json. If you want to dynamically change this address you can see the below code lines. Return the address according to your requirements.
- <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/d71340b07ec176cb2c7094fb2bff1e4a537bfc44/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Url/WebUrlService.cs#L17">https://github.com/aspnetzero/aspnet-ze ... ice.cs#L17</a>
- <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/d8a191aafd95775565b9d9f4e32019ff4aa8bad0/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Startup/AuthConfigurer.cs#L60">https://github.com/aspnetzero/aspnet-ze ... rer.cs#L60</a>
- <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/319edaefae8c539dda7f8b18aa3efd2c5f3238a0/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Startup/AbpZeroTemplateWebHostModule.cs#L48">https://github.com/aspnetzero/aspnet-ze ... ule.cs#L48</a>
- <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero-core/blob/d71340b07ec176cb2c7094fb2bff1e4a537bfc44/aspnet-core/src/MyCompanyName.AbpZeroTemplate.Web.Host/Url/WebUrlService.cs#L17">https://github.com/aspnetzero/aspnet-ze ... ice.cs#L17</a>