Any one know how to set up two webservers( apache or some other server) in same server. I mean I want to run a transparent webserver in the backend for serving images and another one in the front end for serving other static contents and the image requests to the first main webserver should be redirected to the second backend webserver to serve the images. Any idea?
create an A record in your dns for something like images.yourdomain.com pointing to the Ip of your second server. Setup thttpd on the second server.
For all images make sure the call in the html or whatever is <img src="http://www.images.yourdomain.com/whatever.jpg">
It depends on the software you are using, maybe it already supports it. If not you could always use something to search and replace all the images. If for instance they are always stored in http://domain.com/images just change that to http://images.domain.com images.
I have never done this but it sounds like it would work and you could always create a backup first.
John W, CISSP, C|EH
MS Information Security and Assurance ITEagleEye.com - Server Administration and Security Yawig.com - Managed VPS and Dedicated Servers with VIP Service
mod_proxy is not used for that really. http://httpd.apache.org/docs/mod/mod_proxy.html for more information on mod_proxy. How many files would you really have to edit? It's not that hard of a change, you can do it with notepad on a medium sized site no problem. If the site had hundreds of pages I would assume it was done in php in which case I hope you're not calling each image directly