My opinion is your backend image server should be exposed. Site: mydomain.com Backend: mybackend.mydomain.com
Images site: images.mydomain.com Backend: static2.s3.mydomain.com map <site> <backend> I'm not sure trafficserver can do backed passing based on URL regex, I do see a plugin though. If it's possible you could regex for .jpg, etc and pass to a specific backend. I would not do regex proxy based on URL for images because it may make maintenance and app debugging difficult. On Wed, Jan 27, 2010 at 7:28 AM, Jason Giedymin <[email protected]>wrote: > The way I see it you should be doing this: > > Specify your image server with a different host and always refer to that > host in your app for images > > Or > > use a proxy rewrite to act on images via regex (.png, jpg, etc...) which > will pass on to the desired location. You can still use the proxy server to > cache. > > You could rewrite based on > > The thought lies in where you think the split should happen. I for one > prefer a defined host for images (and the like) contained within the > confines of my application as opposed to a proxy config file. > > -Jason > > > On Jan 27, 2010, at 3:48 AM, kelu tang <[email protected]> wrote: > > I set this did not offer much help. >> Many origin server via a single proxy. If my HTTP server domain is >> www.a.com, my image server is img1.b.cn, img2.b.cn....You know the >> HTTP server will call the images of my image server. >> I have recently been living in this confused. >> >> Thanks. >> >> Tang Road >> >> >> >> On 1/27/10, Jason Giedymin <[email protected]> wrote: >> >>> I believe you should be able to multiple maps via a single proxy >>> >>> map http://172.16.3.8:80/ http://host1.a.cn:80/ >>> map http://172.16.3.8:80/ http://host2.a.cn:80/ >>> And on and on >>> >>> -Jason >>> >>> On Jan 26, 2010, at 9:45 PM, kelu tang <[email protected]> wrote: >>> >>> Hi, >>>> In one origin server, it work well.I have tested with the tools of >>>> the 10000 number of simultaneous connections.Even the machine is not >>>> very good.I add this in the remap.config file : >>>> map http://172.16.3.8/ http://www.a.cn/ >>>> reverse_map http://www.a.cn/ http://172.16.3.8/ >>>> >>>> Now, i have image server, static page server,video server like >>>> "img1.a.cn, img2.a.cn, static1.a.cn, video.a.cn". >>>> How can set it? >>>> >>>> Thanks in advance. >>>> >>>> Tang Road >>>> >>> >>>
