About Us  |  Blog  |  Hosting Partners  |  Legal  |  Portal Login

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Images from another subdomain?, How do I serve images from another subdomain?
frenetic
post Jun 27 2008, 09:14 AM
Post #1


Celery
*

Group: Members
Posts: 25
Joined: 20-January 06
Member No.: 19,468



I have a server (foo.com) that normally serves my website and images and music. I have another server (bar.com) that has a mirror of those files.

In times of large traffic, I'd like to switch to serving all the images and music from another server.

I've been told the best way to do this is to set up images.foo.com and music.foo.com and switch the IP they point to via DNS when the need arises.

How do I point those subdomains at /images/ and /music/ on my web server?

Server info: Red Hat, Plesk 8, using legacy servercommand control panel.

Thanks!
Go to the top of the page
 
+Quote Post
eth00
post Jun 27 2008, 11:46 AM
Post #2


SuperGeek
****

Group: Members
Posts: 4,850
Joined: 23-May 03
Member No.: 7,754



Well the obvious answer is you change the sites code so it links all of the images to a subdomain.

You probably could also do it via some work with a .htaccess but I don't know if that could be easily pulled off cleanly.


--------------------
John W
My personal website with many free security and linux how-to's!
Tss -- Live Support! Tweaking, Securing, 24x7 Service Monitoring, Monthly Management, Migrations, Restores, Optimization, LoadBalancer Configuration, Mysql Clusters, Custom Configurations, Consulting. English And Spanish Support!
We do it all @ TotalServerSolutions
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 21st November 2009 - 01:36 PM
 

Dedicated Servers

Managed Hosting

Colocation

Business Solutions

Why The Planet?

Contact Us