Loading a website from two servers

chrisjob012

New member
I am currently hosting a website on a server which supports windows hosting.. i use ms access as the database.


but now i got an offer from a hosting company to host my site in their server. but the problem is that it supports only linux hosting.

so i am planning to host my pages on the first site... create a second domain for the second server, and host all my images and videos from there...

so all the aspx pages will be on the first one, while all images and videos will come from the second site..


is this a correct way to do things??
please advice me...:help:
 
I think that if you use that Linux server to host and pull just media files (it HAS to be on another domain name then (or at least an IP address)), I personally don't see a problem with it, but I would rather wait to see what other people say as well.

EDIT: To give you an example. I can run a site on Windows server www.siteA.com with the database, etc. I can also run a media server on a Linux server www.siteB.com with all the media files. I just have to specify the correct destination URL to pull files from siteB.com.
 
so all the aspx pages will be on the first one, while all images and videos will come from the second site..
Yes, that can be done. You don't even need to register a new domain. You can use a subdomain of the domain you already have.
 
I am currently hosting a website on a server which supports windows hosting.. i use ms access as the database.


but now i got an offer from a hosting company to host my site in their server. but the problem is that it supports only linux hosting.

so i am planning to host my pages on the first site... create a second domain for the second server, and host all my images and videos from there...

so all the aspx pages will be on the first one, while all images and videos will come from the second site..


is this a correct way to do things??
please advice me...:help:
As Dan said you can use a subdomain for this.

Create a DNS Entry (If you have not done that already) and for the second server and select a hostname i.e media.domain.com and just direct your media files to that on your web-page.
 
Better to use the same server and from same company. Otherwise you have to use web adddress n image path insted of virtual path.. its not good and also if the second server down the site will be up with many broken links and dameged site...
 
As Dan said you can use a subdomain for this.

Create a DNS Entry (If you have not done that already) and for the second server and select a hostname i.e media.domain.com and just direct your media files to that on your web-page.



Thanks guys... that was a nice piece of advice....

So, a majority of you say that running a site from two servers is actually not a problem....

So, i am planning to do this way my site example.com will run from a windows hosting server, and all my images and videos will come from
media.example.com will be a linux hosting server....
 
Why do you need a subdomain? Why not just host everything on your ASP/Windows server and then keep only your media files on the other server, then simply link to them from your main site.

The only reason you'd need a subdomain is if you're planning to create a separate site from your main one. From your post I don't think that's what you want to do.
 
You can do it, and with mod_rewrite, you can do it perfectly. Don't need to create subdomain, don't need to change your scripts.

You can google mod_rewrite for more info.
 
You can do it, and with mod_rewrite, you can do it perfectly. Don't need to create subdomain, don't need to change your scripts.

You can google mod_rewrite for more info.
The site hosting the media files will need some method by which it can be accessed, hence the sub-domain. Of course you could possibly access it by the IP/~user/ URL if that module is used on the linux server.
 
Back
Top