Servergrid UserLink

... connection ... education ... discovery ... information ...
Welcome to Servergrid UserLink Sign in | Join | Help
in
Home Blogs Forums Photos Downloads Servergrid Join Now Private Messages

Multiple subdomains using a Dedicated IP

Last post 03-03-2007, 8:53 AM by josh. 5 replies.
Sort Posts: Previous
  • Multiple subdomains using a Dedicated IP

     03-02-2007, 5:27 AM

    • Joined on 03-02-2007
    • Posts 9
    • Points 41
    • Top 10 Contributor

    The following link described the sort of thing I'm trying to do...

    http://codebetter.com/blogs/brendan.tompkins/archive/2006/06/27/146875.aspx

    I've been told to use a dedicated IP. Will this same thing work without one?

    Will this work with a dedicated IP? I dont want to create subdomains, but the application should act like it has sub domains.

    i.e blue.domain.com should be redirected according to some criteria, red.domain.com to another... etc 

     

    Ltl help...

  • Re: Multiple subdomains using a Dedicated IP

     03-02-2007, 9:53 AM

    Moderator
    Yes, this will work automatically if you have a dedicated IP.  In the link you sent where it says "you’ll need to add a blank host header, so that any requests for subdomains not listed  get forwarded to the proper website," IIS will be automatically configured in that manner when you switch a domain to dedicated IP.  The same won't work for a shared IP because IIS would not be able to determine which site to send the request.

    Administration
    Servergrid - Windows Hosting Experts
    http://www.servergrid.com

  • Re: Multiple subdomains using a Dedicated IP

     03-02-2007, 11:32 AM

    • Joined on 03-02-2007
    • Posts 9
    • Points 41
    • Top 10 Contributor

    Thanks for the feedback.
    Thats exactly what i thought would happen. But I tried it and my application is catching the requests.
    I have a shared IP right now (www.virex.info). I requested support to add a wildcard (*.domain.com) domain header to which they responded that it already exists.
    I removed all default file names to acccess in request for the domain and now when I request www.virex.info/home1.aspx, the application beginRequest function catches
    the request. Only problem is, you cant acces the Session in there. Either that or I've been unable to; but the point is, the beginRequest function (my application) catches the request !

    If you want, I can give you the code as well that i'm using in the beginRequest function, and you can help me fix that, because I really need this to work, and apparently its about to work
    with a shared IP. I need help, because I dont know where to go from here.

    If I'm not understanding something correctly, please do let me know.

    Thanks.

  • Re: Multiple subdomains using a Dedicated IP

     03-02-2007, 11:51 AM

    Moderator
    It is the wildcard DNS that exists by default; you can verify by pinging anything.yourdomain.com and you will get the same shared IP your site uses.  But because this is a shared IP, requests to this IP using an unknown hostname such as http://anything.yourdomain.com will not reach your site.  It will be necessary to have a dedicated IP in order to use wildcard subdomains for your web site.  Please try switching to dedicated IP, then allow 24 hours or so for DNS propagation, then you will see that http://anything.yourdomain.com will correctly reach your web site.  Hope this helps, have a good day.

    Administration
    Servergrid - Windows Hosting Experts
    http://www.servergrid.com

  • Re: Multiple subdomains using a Dedicated IP

     03-03-2007, 8:33 AM

    • Joined on 03-02-2007
    • Posts 9
    • Points 41
    • Top 10 Contributor

    This is kinda off topic, but I was thinking, since I have unlimited subdomains to work with, is there a way to create subdomains through server-side code?
    Is there a secure API that can be used to do that?
    This way I wont need to convert to a dedicated IP.

     Thanks in advance.

  • Re: Multiple subdomains using a Dedicated IP

     03-03-2007, 8:53 AM

    Moderator
    • Joined on 11-05-2006
    • Posts 50
    • Points 260
    • Top 10 Contributor

    Hello,

    At this time our supported method for adding subdomains to your account is through your account's H-Sphere control panel.  

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems