我目前讨价还价的CDN在videocaching方面performance非常差。 更糟糕的是,我没有任何访问权限。
所以我想知道是否有可能重写某些文件types的URL到我的服务器的IP地址,而不是CDN服务器?
在Apache中应该是这样的: https : //stackoverflow.com/questions/7154666/apache-mod-rewrite-redirect-file-type-to-another-domain
添加到你的nginxconfiguration文件的思考:
location ~* \.(gif|jpg|jpeg)$ { rewrite ^(.*) http://someserver.com/$1 last; }
你可以在这里看到重写的nginx
configuration的例子,以及一些location指令的例子