+ Reply to Thread + Post New Thread
Results 1 to 10 of 10

Thread: Subdirectories with different IPs. How?

  1. #1
    Noobie
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Subdirectories with different IPs. How?

    EDIT: Meant Subdomains, not subdirectories

    Hi,

    Not sure that's BH and it sounds to be a simple question, sorry for it. I'm still learning.

    I'm new here, but I like to know how can I get a different IP for each subdomain on a tld using a VPS.

    Do I just assign/order a new IP for each of the subdomains (perhaps 10-15 or more) from within the VPS or do I outsource the DNS to OpenDNS, EveryDNS etc? Or any other recommend better way? Please let me know. I don't want to buy a bunch of .infos nor main tlds.

    Currently I do not have registered for a VPS, but consider slhost.com (no relation to it) or any other one you might advice me to.

    Thanks

  2. Shorten URL    SEO Services    Buy Xrumer

    Sponsored Links

  3. #2
    Noobie
    Join Date
    Apr 2008
    Posts
    150
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Not sure but I would think you should ask your hosting company, each one may have a different system.

  4. #3
    Noobie
    Join Date
    Apr 2008
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Assuming you get a Linux VPS and not Windows, you would need to install a DNS server liked BIND and a web server like Apache.

    You would create an "A" entry for your subdomain in your main domain's zone file. So basically, in your domain's zone file you would have an entry that looks like this:

    subdomain IN A xxx.xxx.xxx.xxx

    Replacing the x's for whatever IP address you want.

    Then in your Apache configuration file, httpd.conf, you would need to create a VirtualHost specifically for your subdomain and specify the IP address:


    DocumentRoot /home/username/public_html
    ServerName subdomain.domain.com

  5. #4
    Noobie
    Join Date
    Apr 2008
    Posts
    361
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Get different domains, I guess, I am not sure what u want to know.

  6. #5
    Noobie
    Join Date
    Apr 2008
    Posts
    297
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Like BPAW has said, if you are using cPanel or Directadmin (I only mention those 2 control panels as thats what I use) you can use the DNS settings to put subdomains on different IP addresses or even the 'move site' settings.

    If you are using one of those CP and need a hand, feel free to shout.

  7. #6
    Noobie
    Join Date
    Apr 2008
    Posts
    104
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Actually you don't need to install a DNS server, I'm not sure why you would want to, any registrar if you use their DNS server will let you set the A name record to the IP you want(which would just be to your main domain without a sub domain).

    Then as you said set virtual host up to whatever IP you want it to use from your server and ServerName to the subdomain.domain.name you want.

  8. #7
    Noobie
    Join Date
    Apr 2008
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The reason I like to manage my nameservers is if your domain registrar's nameservers go down...your site is down even if your server is working perfectly fine. If your server goes down, your website is inaccessible either way but at least you're not relying on someone else. If you are uncomfortable managing your DNS, definitely outsource to your registrar or another third party.

  9. #8
    Noobie
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for all the kind and useful answers.

    One of the main reasons why I want to have a different IP for subdomains is to completely(??) isolate the main domain from the subdomains as far as that is ever possible.

    My thinking is that when usual one subdomain (IP) gets banned, so normal the complete tld if it has the same IP. If I have several subdomains (installed with yacg, rssgm etc) with different IP's, it may be a little bit more secure for the other subdomains. I may be wrong in this respect, however...I do know that Google is treating subdomains actually as subdirectories, but anyway.

    Also, perhaps as important for me, with a different ip I may not need to purchase several independent domains. I do not like to order a bunch of .infos. While cheap, I do think Goggle don't like them as much as .com).

    I'm very well aware that of course I can use as many subdomains I want with the same IP as the purchased tld - but then again, a different IP for each subdomain MAY make a difference security-wise. Please let me know if that is the case or not. Thanks.

  10. #9
    Noobie
    Join Date
    Apr 2008
    Posts
    100
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you're talking about Google banning a domain, they don't ban domains by IP, It's not unusual to have many domains on the same IP some may get banned but won't affect the others.

    However, if a subdomain get's banned I think the domain will be banned too ( and any other sub-domains), certainly having sub-domains on different IP's won't make any difference to them being banned or not.

    It's only really interesting to have multiple IP's if you want to interlink domains, if you don't want to interlink just buy more domains, host them on the same IP, probably cheaper over a year than having multiple ip's anyway.

  11. #10
    Noobie
    Join Date
    Apr 2008
    Posts
    68
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I do not know much about how Google bans subdomains/domains/IPs etc but my one observation is this. At places like Blogger, you get a free subdomain. If that subdomain is caught for scraping content or for whatever reason, and subsequently gets banned, I'm certain that blogger.com and its other subdomains will not get banned. Of course, maybe Google makes exceptions for certain sites as gigantic as Blogger.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts