Help - Search - Members - Calendar
Full Version: Images from another subdomain?
The Planet Forums > Control Panels > Plesk
frenetic
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!
eth00
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.