![]() ![]() |
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! |
|
|
|
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 |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 21st November 2009 - 01:36 PM |