开发者

Mod_Rewrite for CDN

I need a Mod_Rewrite rule that will re-direct all references in our web app to a CDN URL instead of loading the images from /img on the localhost. Does开发者_运维百科 anyone have a sample Mod_Rewrite code snippet that would accomplish this? Thanks so much! John


ProxyPass and ProxyPassReverse are your friends

ProxyPass /img/  http://cdn/imageslocation/
ProxyPassReverse /img/ http://cdn/imageslocation/
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜