Reputation: 30344
I have an ASP.NET Core SPA app that requires authentication. I also want to have a single static public HTML page for unauthenticated users.
I'd like to set these up like this:
Public HTML page => https://example.com SPA app => https://member.example.com
Can I do this using a single web app on Azure App Service or do I need two separate web apps?
Upvotes: 1
Views: 193
Reputation: 18465
Since other communities have provided suggestions, I just summarized the existing approaches and my ideas for you to achieve your purpose:
Use multiple virtual directories under a single web app as Zahid Faroq commented
Use two separate web apps
Since you are using azure web app, for a simple way, you could leverage App Service Certificate, and choose the S1 Standard certificate SKU which could create SSL bindings for root and www subdomain. Example: A single certificate could be used to protect example.com
and www.example.com
. If you use other subdomain instead of www and you could confirm that you only need two SSL certificates, then you need to buy an additional SSL for member.example.com
. Also, you could check WoTrus TLS / SSL Certificates, GoDaddy SSL Certificates, How to get FREE SSL Certificate for Website (HTTPS).
Upvotes: 0