How to Deploy Multiple Applications on a Single Azure App Service Using Web App for Containers and Expose Multiple Endpoints on the Same Domain
- https://www.example.com → Web Public
- https://www.example.com/admin → Blazor Admin
- https://www.example.com/api → API
- https://www.example.com/auth → AuthServer
We want to avoid using multiple App Services or subdomains if possible and would like to maintain the same HTTPS certificate for all endpoints.
32 Answer(s)
-
0
Hi
You can add it and try again.
If still get 500 error please share the logs.txt files again.
Thanks.
-
0
[maliming] said: Hi
You can add it and try again.
If still get 500 error please share the logs.txt files again.
Thanks.
Can I add it in the auth or admin module?
-
0
Hi
Auth website. If not working, add it to all websites.
Thanks.
-
0
[maliming] said: Hi
You can add it and try again.
If still get 500 error please share the logs.txt files again.
Thanks.
Hi
I have sent logs file in the mail.
Thanks
-
0
hi
The new error:
Client validation failed because 'http://emeraldhealthcare.us/signin-oidc' was not a valid redirect_uri for Emerald_Web_Public_Prod.Have you added
ctx.Request.Scheme = "https";to the admin website?app.Use(async (ctx, next) => { ctx.Request.Scheme = "https"; await next(); });
Additionally, it seems there is an issue with your reverse proxy configuration. The browser requested HTTPS, but the URL is still HTTP.
Thanks.
-
0
[maliming] said: hi
The new error:
Client validation failed because 'http://emeraldhealthcare.us/signin-oidc' was not a valid redirect_uri for Emerald_Web_Public_Prod.Have you added
ctx.Request.Scheme = "https";to the admin website?app.Use(async (ctx, next) => { ctx.Request.Scheme = "https"; await next(); });
Additionally, it seems there is an issue with your reverse proxy configuration. The browser requested HTTPS, but the URL is still HTTP.
Thanks.
Hi Yes, I have added it on the admin website, and in the database, it is set to HTTPS.
Thanks
-
0
hi
Try to change your
oidcProtocolMessageas below in production environment..AddAbpOpenIdConnect("oidc", options => { //options. options.Events.OnRedirectToIdentityProvider = redirectContext => { redirectContext.ProtocolMessage.RedirectUri = "https://emeraldhealthcare.us/signin-oidc"; return Task.CompletedTask; }; options.Events.OnRedirectToIdentityProviderForSignOut = redirectContext => { redirectContext.ProtocolMessage.PostLogoutRedirectUri = "https://emeraldhealthcare.us/signout-callback-oidc"; return Task.CompletedTask; }; })