Can we host a part of a website on one server n another part on another server ?

Discussion in 'Site & Server Administration' started by kslokesh, Oct 4, 2008.

?

How is this Idea of Spanning the hosting onto different servers ?

  1. Good Idea

    100.0%
  2. Bad Idea

    0 vote(s)
    0.0%
  1. #1
    Can we host a part of a domain on one server or with a hosting service provider and another part of the same domain on different server or hosting provider?

    Can the hosting of a single domain be spanned to different hosting providers? Is this possible?

    I use hosting from a different hosting provider and email service from Google Apps. similarly I want to host different parts of website with different service providers.

    Can this be done by using Subdomain?
    Eg 1: subdomain1.domain.com hosted on Hosting Provider A
    subdomain2.domain.com hosted on Hosting Provider B

    OR

    Eg 2: domain.com/folder1/ hosted on Hosting A
    domain.com/folder2/ hosted on Hosting B

    Can this be done?

    If this is possible means we can host the pictures and videos on the server with more space and bandwidth but minimal features (Eg: 1GB space 10GB Bandwidth but no .htaccess shell etc. probably an Ad supported free hosting) AND
    Host Dynamic content on the service which has less space but more features (Eg: 100MB space 1GB Bandwidth with .htaccess shell scripts etc paid hosting)

    Please tell me and give me your suggestions and opinions..
     
    kslokesh, Oct 4, 2008 IP
  2. alemcherry

    alemcherry Guest

    Best Answers:
    0
    #2
    Yes, very much possible. In fact that is how you manage large sites with many sections.

    Only problem with using subdomains and different servers is the session management. You will not be able to use the default session management of PHP, as it is available only on the server on which it is set. But in your case, since you want to host only the static content on another server, you don't have any issues. So go ahead and implement, just a matter of setting the right IP address for cnames on your DNS server.
     
    alemcherry, Oct 4, 2008 IP
  3. kslokesh

    kslokesh Well-Known Member

    Messages:
    153
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Thanks a Lot alemcherry,


    How to Implement this?

    I have the following features:

    Domain:
    A Records, Mx Records, Name Servers, CNAME, URL Forwarding.

    Hosting:
    cPanel Hosting, .htaccess, fantastico etc features..

    How to Implement it and What all Do I need to Implement it.

    Please guide me.
     
    kslokesh, Oct 4, 2008 IP