How to set up co-location linke php.net...
12-24-2007, 08:21 PM
|
How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
hello.
I really want to learn how to do this i have UK hosting and also access to US hosting and mainly to learn how i want to set it up so it auto syncs and also co-locates so i can go to us.dansgalaxy.co.uk and it will show my site exactly as it would if it was dansgalaxy.co.uk includeing subdomains... so ipme.dansgalaxy.co.uk if it was accessed through us.dansgalaxy would become ipme.us.dansgalaxy is this possible without re-writing evetything?
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-26-2007, 12:08 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 216
|
The best way to do a "co-locate" is to set up domain name aliases. Basically how it works is you register the domain and point the nameservers to your host. Then in your webhosting control panel you can alias the us domain to your co.uk. So if you went to subdomain.dansgalaxy.com, it would be the same as subdomain.dansgalaxy.co.uk.
To do what I understand from your post, you might be able to alias the subdomains (at least I can through Plesk), so that dansgalaxy.com is an alias for us.dansgalaxy.co.uk.
|
|
|
|
12-26-2007, 09:38 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
i think you have mis understood a bit,
basically i have TWO seperate hosting accounts both i have reseller privs on.
I want us.dansgalaxy.co.uk to point to and work with one hosting and dansgalaxy.co.uk and all the rest to point to my UK host.
but i have subdomains and alsorts so it would need to work as well...
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-30-2007, 06:43 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 11,442
Location: Blackpool. UK
|
It's all done with DNS
on the authoritative nameserver for hostname.tld set an "A" record for "us" pointing to the other server IP, first making sure that no wildcards are set up.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
12-30-2007, 08:20 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
what would i go into to do this?
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-30-2007, 08:51 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 11,442
Location: Blackpool. UK
|
off hand I've no idea
do you have a control panel for your hosting. cPanel, Plesk or something similar? There is usually a DNS and virtualhosts interface there.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
12-30-2007, 01:41 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
i have CPANEL and have WHM access on both with RESELLER privs....
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-30-2007, 03:13 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 11,442
Location: Blackpool. UK
|
OK. Been a long time since I used cPanel so I won't be giving step by step instructions
BTW. Wildcarding is off anyway.
so in your dansgalaxy.co.uk DNS Zone control panel you should have an "A" record for dansgalaxy.co.uk pointing to 87.117.236.18, and CNAME records for "blog" & "www" aliased to dansgalaxy.co.uk. plus any other aliases you have set up.
There should also be MX records pointing to your mail server. (don't change these)
Add a host ("A") record of us.dansgalaxy.co.uk and point it to the IP of the other host, or add a "CNAME" of "us" and alias it to a hostname on the other server.
Leave the TTL, Refresh, Retry etc settings at the defaults.
on the other server, you need to set up a site with a VirtualHost name of us.dansgalaxy.co.uk.
Wait a few hours for DNS propogation and it should work 
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
12-30-2007, 05:17 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
okay i think its done.
is there a easy way to have it syncroise accounts and files?
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-30-2007, 08:51 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 11,442
Location: Blackpool. UK
|
Quote:
|
is there a easy way to have it syncroise accounts and files?
|
Other than having them on the same server pointing to the same location on the HD you mean 
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
12-31-2007, 03:57 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
yea, but as im not (yet) admin on server and having them on the same server would kind of defeat the point of co-location not really viable  Lol
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-31-2007, 03:07 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 11,442
Location: Blackpool. UK
|
there are several ways possible;
Manual FTP
A FTP script running on a schedule (Cron) on one of the servers GETting or PUTting the files to the other.
A FTP script running on your machine on a schedule that did a GET from one, and a PUT to the other.
My solution (being a programmer / coder) would be to have a custom 404 that recoded the requested URI into a URI from the main site and then did an include from the main site.
A requested URI of
us.hostname.tld/folder/page.ext
would equate to
include("hostname.tld/folder/page.ext")
The script would of course have to respond properly to the HTTP response codes from the main server and handle any include errors tidily.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
|
|
|
|
12-31-2007, 09:24 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
but u cant include from external files?
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
12-31-2007, 09:26 PM
|
Re: How to set up co-location linke php.net...
|
Posts: 5,786
Name: Dan
Location: Swindon
|
i have got the idea for setting up the domain side of things
*please let me just get this out*
GRRR 1and1 SUCK!!! you have to pay tons jsut to get one mysql databse and it would be the same price as my RESELLER accoutn!! which has unlimted dbs emails etc!!! grrr
all you pay for is them to oversell space/bandwidth and email accoutns just to they can get back thier costs for the phone support!!
*and breate*
__________________
Personal UK Webhosting Get 25% of ANY shared package for life ~ Promo: webmaster-talk
|
|
|
|
01-01-2008, 09:43 AM
|
Re: How to set up co-location linke php.net...
|
Posts: 478
|
Quote:
Originally Posted by chrishirst
A requested URI of
us.hostname.tld/folder/page.ext
would equate to
include("hostname.tld/folder/page.ext")
|
Wouldn't this defeat the purpose of what the OP is trying to achieve? It would seem as though this won't reduce the server load on the original server as each request to the 'other' server would still result in a hit on the original server... that's how it would seem to me.
Either way: I don't believe that this is what is generally called 'co-location'. I don't really know what you should be searching for, but co-location is not it... every other time I've seen co-lo stuff (and Google's define agrees with me) it's related to hardware that you own, placed in the data center of a third party.
|
|
|
 | |