Results 1 to 13 of 13
  1. #1

    How is IP Sharing Done In VPS with Many Domains

    Been looking around the threads in WHT here but can't seem to understand this: Given one IP address shared through a VPS reseller with many domains attached to it; how does the VPS host distinguish which domain the request points to? Does the DNS server provide some additional information?

  2. #2
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    934
    Look up virtual host or vhost. Just a caveat, it works with standard http requests, but not ssl.

  3. #3
    Join Date
    Aug 2010
    Location
    California
    Posts
    72
    Quote Originally Posted by tchen View Post
    Look up virtual host or vhost. Just a caveat, it works with standard http requests, but not ssl.
    Look into SNI if you want to do that. http://en.wikipedia.org/wiki/Server_Name_Indication

    It's not fully supported by all browsers but it works on the newer browsers.
    Oscar Pan - Beyond All Knowledge - sales{a}beyondallknowledge.com
    Services: Shared Hosting | Virtual Private Servers | VPS Reseller Program
    Locations: Kansas City, MO (Wholesale Internet)
    Quality Hardware | Great Uptime | Quick Support | Friendly Support Team

  4. #4
    Join Date
    Jan 2008
    Location
    Michigan
    Posts
    1,942
    Quote Originally Posted by jmshost View Post
    how does the VPS host distinguish which domain the request points to? Does the DNS server provide some additional information?
    You would be correct fine sire.
    BLAZINGSWITCH | sales /@/ blazingswitch.com
    SEO HOSTING | ARIN/RIPE/APNIC | 250+ CLASS-B | CLEAN IPv4 LEASING | 1G UNMETERED
    HIGH SPEED WEB HOSTING SOLUTIONS | ENTERPRISE GRADE HARDWARE

  5. #5
    Join Date
    Jan 2011
    Location
    Canada
    Posts
    934
    Quote Originally Posted by BeyondAllKnowledge View Post
    Look into SNI if you want to do that. http://en.wikipedia.org/wiki/Server_Name_Indication

    It's not fully supported by all browsers but it works on the newer browsers.
    Ya I know. I'm still waiting for the day the last of them dies. But I think I'll have better luck waiting for ipv6 to take hold, then it'll likely be a moot point

  6. #6
    Join Date
    Mar 2011
    Location
    Graz, Austria
    Posts
    298
    Quote Originally Posted by Barefootsies View Post
    You would be correct fine sire.
    No it is not?

    The DNS Just provides the IP, the indication if the Domain is on this Server is not done on DNS but on Server level (Name based Hosting).

  7. #7
    It's not the work of VPS but the web server virtual host configuration. an IP is always shared by many domains for shared hosting.

  8. #8
    From what I gather from the replies; the DNS server responds with the IP required for the domain queried. The client PC then receives this IP and outputs both the IP "and" something else the domain name (maybe) or possibly the host ID mask. From this additional information (?), the web server host knows how to route the request to the right domain.

    Sorry I'm an engineer and like to know how things work. I'm wanting to do reselling and technically am missing this part.

    This WHT is a very good service for everything else.

  9. #9
    Join Date
    Mar 2011
    Location
    Graz, Austria
    Posts
    298
    Basically:

    The client recieves the domain name.
    Then the client resolves the domain to the IP, example 1.1.1.2.
    abc.at -> 1.1.1.2
    It then opens the IP in the browser, and sends the "Host" header with the domain name in it "Host abc.at".
    The Server reads this header out, looks in it config to what wwwdir "abc.at" is assigned.
    Then it sends the data back to the client.

    Clear enough? ;-)

    William

  10. #10
    Sharing 1 IP across multiple domain websites is controlled by your webserver config (ie. Apache httpd.conf).

    With Apache and all the spin-offs you can choose IP based or "Name" based virtual hosts.

    Enable name based virtual hosts in your httpd.conf and voila, you can host multiple domains via the same IP.
    KiloServe Hosting - 48 Core Nodes and specializing in high disk I/O VPS
    www.KiloServe.com Providing Quality Hosting since 2007
    Specializing in Dedicated Servers, OpenVZ VPS, Xen VPS, and Windows VPS.

  11. #11
    Ah, simpler than I thought. It is the browser doing the work and encapsulating the domain destination with the IP address. (I was incorrectly trying to make the DNS server do it.)

  12. #12
    Join Date
    Jan 2011
    Location
    California
    Posts
    9
    Quote Originally Posted by tchen View Post
    Look up virtual host or vhost. Just a caveat, it works with standard http requests, but not ssl.
    Or buy SSL certs with multiple domains.

  13. #13
    Join Date
    Mar 2011
    Location
    Graz, Austria
    Posts
    298
    Look up virtual host or vhost. Just a caveat, it works with standard http requests, but not ssl.
    It does, look up "SNI" - but its not widely used (and will most likely never be, with IPv6 now coming).

Similar Threads

  1. Sharing a VPS
    By Wes0805 in forum VPS Hosting
    Replies: 11
    Last Post: 12-05-2010, 01:07 AM
  2. Sharing Sessions across multiple Domains
    By jon31 in forum Programming Discussion
    Replies: 3
    Last Post: 08-14-2008, 01:25 PM
  3. Sharing JDK for multiple domains
    By dongan in forum Hosting Security and Technology
    Replies: 1
    Last Post: 04-13-2006, 11:17 AM
  4. Maximum number of domains sharing an IP?
    By drucey in forum Domain Names
    Replies: 6
    Last Post: 05-12-2005, 11:55 AM
  5. Sharing files between domains?
    By vale in forum Web Hosting
    Replies: 4
    Last Post: 01-28-2005, 04:51 PM

Posting Permissions

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