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

tenancy and subdomain #629


User avatar
0
otgontugsmiimaa created

I've hosted a sample Aspnetzero multitenant web on web1.mydomain.com. And i want to access tenant1.web1.mydomain.com.

So I added "*.mydomain.com" dns host string with an static IP and on IIS, bound web1.mydomain.com to the static IP address. When i access tenant1.web1.mydomain.com, i get HTTP Error 404.

Is there something i'm missing?

I also tried "*.web1.mydomain.com" dns string with no success.


5 Answer(s)
  • User Avatar
    0
    otgontugsmiimaa created

    Forgot to mention it. This setting was also defined. http://{TENANCY_NAME}.web1.mydomain.com/

  • User Avatar
    0
    hikalkan created
    Support Team

    It may get some time to update DNS records.

    You can test your IIS settings by adding this line to C:\Windows\System32\drivers\etc\hosts file in your computer:

    127.0.0.1 default.web1.mydomain.com

    Surely, you will write different IP and URL (default is the tenant name here). Save this document, close & re-open your browser and browse default.web1.mydomain.com If your IIS settings are correct, you should open the application as default tenant.

  • User Avatar
    0
    otgontugsmiimaa created

    Yes i've waited for the host to update dns. Now i can ping default.web1.mydomain.com and its pointing to my host.

    Putting "127.0.0.1 default.web1.mydomain.com" in hosts file the same result. In IIS, web1.mydomain.com is bound to All assigned IP addresses. Any other clue?

  • User Avatar
    0
    hikalkan created
    Support Team

    is web1.mydomain.com assigned to 80 port? Is it the only web site working on this server? It seems there is a problem on your IIS settings, so requests are not redirected to the application.

  • User Avatar
    0
    otgontugsmiimaa created

    Yes it's on port 80. There is a separate website working on mydomain.com and <a class="postlink" href="http://www.mydomain.com">www.mydomain.com</a> names.

    ASP.NETZero demo is located in different folder and different IIS website bound to web1.mydomain.com.

    PS: It seems IIS misconfiguration. When i added a binding tenant1.web1.mydomain.com to the IIS website, it worked. Thank you