Subdirectory on another server?

Discussion in 'Site & Server Administration' started by jordanthegreat, Aug 23, 2007.

  1. #1
    Hey all,

    I am setting up a blog for a website and it is important (for reasons I do not wish to disclose) that the blog be on another server at another datacenter. However, it is also important that the blog appear to be a subdirectory of the main site (for SEO purposes). That is, if my site is www.mysite.com then the blog which is on another server should appear to be www.mysite.com/blog. Anyone know how to go about doing this?

    Thanks for your help,
    Jordan

    P.s. Sorry if this is the wrong forum. Mods please move if necessary.
     
    jordanthegreat, Aug 23, 2007 IP
  2. venetsian

    venetsian Well-Known Member

    Messages:
    1,105
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    168
    #2
    it can not be done. It will work with redirect but it will be another site ...
    best is if you use subdomain .. anayway google changed their algo and now subdomain is counted as one with the main site...

    Cheers,

    Venetsian.
     
    venetsian, Aug 23, 2007 IP
  3. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Venetsian is correct,

    You can't have a subdirectory on a different server due to how domains work.

    A domain points at a server, so everything on that domain needs to be on the same server, it's like a house, you have your street address, but you can't have a room in the house in another suburb, you'll need to use a subdomain of your domain or a different domain entirely.
     
    powerspike, Aug 23, 2007 IP
  4. cyanide

    cyanide Peon

    Messages:
    483
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes, the only way that will work is if you turn the sub-folder into a sub-domain.
     
    cyanide, Aug 23, 2007 IP
  5. plumsauce

    plumsauce Peon

    Messages:
    310
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #5
    unless you have a fancy hardware load balancer :)

    then yes, it *can* be done.
     
    plumsauce, Aug 24, 2007 IP
  6. Camay123

    Camay123 Well-Known Member

    Messages:
    3,423
    Likes Received:
    86
    Best Answers:
    0
    Trophy Points:
    160
    #6
    the subdomain as suggested will a DNS entry to forward all traffic to the other server ip.
     
    Camay123, Aug 25, 2007 IP
  7. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #7
    we have a few of those load balancers here :p

    but guessing from the posters post that he doesn't have a ludaris amount of cash to spend on load balancers :p
     
    powerspike, Aug 27, 2007 IP
  8. linsys

    linsys Peon

    Messages:
    274
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    WOW you are all wrong...

    This can EASILY be accomplished, ever heard of NFS?

    Well ok as long as both boxes are *nix boxes (well if they are windows then you can do the same thing but its highly insecure).

    Server with the blog on it, needs to share its self out as an NFS directory the main domain server can mount this directory in like /export/somedirhere then just handle it like any other directory on your server, make sure apache defines the directory path /blog as this /export/somedirhere

    Or you can always use curl, use php and curl and you can pull the entire site and make it look like your site using curl and php.

    If you don't know how to setup NFS or CURL then you will need to hire someone.
     
    linsys, Aug 27, 2007 IP
  9. powerspike

    powerspike Peon

    Messages:
    312
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #9
    NFS is a realy unstable way to share folders, while it is an option, it can silently fail,meaning it'll appear there but won't be accible, and if it's over a wan the failure rate generaly goes up. It'll also require modification to both servers to get the NFS setup
     
    powerspike, Aug 28, 2007 IP
  10. linsys

    linsys Peon

    Messages:
    274
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #10
    Ummm NFS is used by the largest companies in the world to do EXACTLY this.. have you ever heard of a NAS or a company called NetApp? Their entire business model is based on companies using their NAS servers to NFS or SMB attach storage to their systems.

    If you don't use NFS what would you use to share folders over a network?
     
    linsys, Aug 28, 2007 IP