svg feturbulence 滤镜
利用这个滤镜可以实现超酷的水面倒影效果
SVG滤镜自然河流倒影效果 " 张鑫旭-鑫空间-鑫生活www.zhangxinxu.com![a43ba3af762a8a2c30b54a3c3c726298.png](https://i-blog.csdnimg.cn/blog_migrate/c1406b570e06e34d337603584a346b27.png)
![2e4264027162aa56b60d0fbb4c93d387.png](https://i-blog.csdnimg.cn/blog_migrate/76e6e8b4088e5bf7a82bb986c941316c.jpeg)
nginxunderscores_in_headers 在非默认server 块中 http 请求没有转发请求头而https却可以?
今天遇到一个问题,后端同事在调试的时候直接使用域名没有加http或https 的前缀导致他的服务一直读不到自定义的请求头,然后我来查看这个问题
首先发现加上 https 前缀是可以正常访问的。
然后对 nginx 的配置进行尝试发现原有的 underscores_in_headers on
配置在 server 块中时 http 请求没有转发自定义请求头,而配置在 http 块的时候 http 请求正确转发了请求头 #解决方案#
看了看nginx文档 http://nginx.org/en/docs/http/ngx_http_core_module.html#underscores_in_headers 其中有一段
If the directive is specified on the server level, its value is only used if a server is a default one. The value specified also applies to all virtual servers listening on the same address and port. 译文:如果指令是在服务器级别上指定的,它的值只在服务器是默认服务器时使用。指定的值也适用于在同一地址和端口侦听的所有虚拟服务器。
这段话看的我有点懵,尝试后发现第一个 server 块被指定为所谓的 default server
。如果underscores_in_headers on
放在第一个 server 块下面的server块配置的转发都没什么问题。
现在唯一的疑惑是一开始为什么 https 请求是可以转发请求头的,不应该也不行吗?
我提了一个问题,希望有人解惑
nginxunderscores_in_headers http 请求没有转发请求头而https有?www.zhihu.com