开发者

Nginx: Rewrite file extension

How ca开发者_运维知识库n i rewrite a .swf file extension?? This is my syntax which does not work:

rewrite ^/directory/swift$ directory/tools/swift_file.swf last;


You missed leading / in replacement.

Also, for single file instead of rewriting you can use alias:

location = /directory/swift {
    alias /directory/tools/swift_file.swf;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜