开发者

Mod_Rewrite for CDN

开发者 https://www.devze.com 2023-02-06 13:22 出处:网络
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 c

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

精彩评论

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