






















请注意,本文编写于 1412 天前,最后修改于 1411 天前,其中某些信息可能已经过时。
在起项目用nginx反代的时候,会发现出现意料之外的301,把需要或者不需要的端口号带上。
使用 vanblog 的镜像时使用-p 2333:80,那么:
If a location is defined by a prefix string that ends with the slash character, and requests are processed by one of proxy_pass, fastcgi_pass, uwsgi_pass, scgi_pass, or memcached_pass, then the special processing is performed. In response to a request with URI equal to this string, but without the trailing slash, a permanent redirect with the code 301 will be returned to the requested URI with the slash appended. If this is not desired, an exact match of the URI and location could be defined like this: location /user/ { proxy_pass http://user.example.com; } location = /user { proxy_pass http://login.example.com; }
配置文件增加:
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。