Multiple sub-domains pointing to the same domain

Discussion in 'Pre-sales questions' started by Guest, Aug 17, 2010.

  1. Guest

    Guest Guest

    Hello,

    My ASP.NET MVC multi-tenant application expects requests from different sub-domains to figure out customer configurations. Is there any way to have DNS (I have one) resolve *.example.com to a site hosted at Winhost and have this one application handle the requests? Do I need dedicated IP address for that? Are there any other limitations?

    My requirements to any proposed solution are:
    1) Request coming to tenant.example.com stays on tenant.example.com and doesn't redirect to example.com/something.aspx?customer=tenant.
    2) I don't know sub-domains upfront (well, except I'll disallow www and whatsnot) - customers will be subscribing and getting their site any time they want.

    Thanks.
     
    Last edited by a moderator: Oct 14, 2015
  2. Ray

    Ray

    Yes you are going to need a unique IP address attached to your account, but you can only get a unique IP address if you have SSL installed. This will mean you will have to order the Max or Ultimate plan.

    1) Request coming to tenant.example.com stays on tenant.example.com and doesn't redirect to example.com/something.aspx?customer=tenant.

    By nature it will have to redirect, that is how IIS works. Unfortunately you will need to incorporate various techniques such as URL redirecting and URL rewriting.

    2) I don't know sub-domains upfront (well, except I'll disallow www and whatsnot) - customers will be subscribing and getting their site any time they want.

    It sounds like you are planning to host multiple websites under one Site Account. Although we do not stop our customers from doing this there are some draw backs. 1 -- All sites will basically be under one root hence the same web space. 2 -- Each Site Account will run under one application pool. All these sites you are trying to create will be under that one application pool, and if one site crashes, it can potentially crash all the other sites. 3 -- There is not email for these subdomain names.
     
  3. Guest

    Guest Guest

    Ray,

    Thanks for your answers and pointing out to the possible problems.

    Is there any way for me to pay for 1-3 months of service with dedicated IP and SSL to test various ways of running my application with your service?

    Thanks.
     
  4. Ray

    Ray

    I'm afraid we only have two payment plans, you can either choose monthly or annually. I suggest you stay with monthly.
     
  5. Guest

    Guest Guest

    Yeah, I get it. I mean, would it be a problem if I go with Ultimate plan and add dedicated IP there?

    Thanks.
     
  6. No problem. You can upgrade temporarily if you need to do so to test something.
     
  7. Guest

    Guest Guest

    To follow up with resolution here.

    I got Ultimate plan with cheapest SSL certificate available - it gave me dedicated IP and ability to point * record in DNS to my site. All in all, everything worked out as I wanted it.
     
  8. Ray

    Ray

    It is good to hear that it worked out for you.
     
  9. jennyk

    jennyk Guest

    Multiple sub domains pointing to the same domain

    Is it possible to run multiple domains under one account? A single database is fine, its just each domain hosts a different...thing.

    At my current host when I login via FTP I see four folders, each has a website setup under it, that is what I want to accomplish here, if possible.

    Thanks,

    Guest
     
  10. Ray

    Ray

    Yes it is possible but you will need to setup redirect scripts so that specific http calls to a domain name gets redirected to the targeted subfolder.

    First you will need to add the domain names as domain pointers to your account.

    http://support.Winhost.com/KB/a696/details-on-domain-pointer-service.aspx

    Once that is done you will need to create the subfolder via FTP and load the website unto those subfolders.

    Then, you will create a redirect script on your startup page in your root so that it can navigate specific http calls to the correct subfolder. Try looking at this kb article as an example of coding a redirect script.

    http://support.Winhost.com/KB/a649/how-to-redirect-a-subdomain-to-a-subdirectory.aspx

    You do not need to code a redirect script to accomplish this. If you want you can also use the URL rewrite module inside IIS 7 Manager to help you create a URL rewrite/redirect rule. First you will need to connect to our web server using IIS 7 Manager.

    http://support.Winhost.com/KB/a628/using-the-microsoft-iis-70-manager.aspx

    You may want to look at this link to learn more about the URL rewrite/redirect module in IIS 7.

    http://learn.iis.net/page.aspx/465/...nfiguration-reference/#Rewrite_Rules_Overview

    Some people don't like to use this module because it is complicated to use. But if you know how to use it, you can do a whole lot of stuff with it.
     
    Last edited by a moderator: Oct 14, 2015
  11. amk2010

    amk2010 Guest

    Nice guidelines shared ... very useful ... thanks Ray :)
    [​IMG]
     

Share This Page