Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Set up domain that allows wildcards for tanents #4531


User avatar
0
bolenton created

I was finally able to successfully deploy my Angular app to Azure.

Now I am trying to set up the domains so that the domains wildcards will work. For example if user types in default.myapp.com, they should be on the default tenant. I have connected my domain (managed from google domains) to the azure app.

Currently when I try default.myapp.com I get this error.

What am I missing?


7 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    It seems like your configuration doesn't work well. You can check this document if it is configured correctly or not <a class="postlink" href="https://blogs.msdn.microsoft.com/waws/2015/12/01/mapping-a-wildcard-domain-name-to-an-azure-app-services-web-app-website/">https://blogs.msdn.microsoft.com/waws/2 ... p-website/</a>.

    For AspNet Zero side, you need to configure website url. This link is for ASP.NET Core & jQuery. <a class="postlink" href="https://www.aspnetzero.com/Documents/Development-Guide-Core?searchKey=%22%7BTENANCY_NAME%7D%22#web-site-root-url">https://www.aspnetzero.com/Documents/De ... e-root-url</a>

    If your version is different, select the correct one here <a class="postlink" href="https://www.aspnetzero.com/Documents/Development-Guide">https://www.aspnetzero.com/Documents/Development-Guide</a>

  • User Avatar
    0
    bbakermmc created

    I dont use Azure but this is what I had to do on a 2012box.

    You need to configure DNS for wildcard. You also need to setup IIS for wildcard(available in 2016 server/IIS10) or * for a dedicated IP so it always resolves to site.

  • User Avatar
    0
    bolenton created

    I got this working now Thanks guys!

    The last piece I was missing was that I needed to add the wildcard in my DNS as a CNAME and also add it to azure as well.

    Finally I notice a lot of errors in my console. Does not seem to be effecting anything, but does anyone know how I can solve this?

  • User Avatar
    0
    aaron created
    Support Team

    Did you do ng build --prod?

  • User Avatar
    0
    bolenton created

    I just did a normal ng build. I did't add the --prod flag.

  • User Avatar
    0
    ismcagdas created
    Support Team

    @bolenton, can you try this #4302@2fb94043-b966-4c50-b74e-c517224f9d58 ? Azure doesn't allow woff/woff2 mime types by default.

  • User Avatar
    0
    bolenton created

    That worked perfectly. Thanks @ismcagdas!