首先看一个完整代码示例,关于nginx 301 302跳转的。301跳转设置: server { listen 80; server_name downcc; rewrite ^/(; rewrite ^/(.*)...