Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/sql/70.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何获取:Nginx上的权限标头?_Nginx - Fatal编程技术网

如何获取:Nginx上的权限标头?

如何获取:Nginx上的权限标头?,nginx,Nginx,如何在Nginx上获取http头 HTTP/2支持默认具有“:authority”头 我需要检查$host与$http\u权限的匹配情况 但是$http_权限是空的 if ( $http_authority ~* $host ) { return 405; } 谢谢

如何在Nginx上获取http头

HTTP/2支持默认具有“:authority”头

我需要检查$host与$http\u权限的匹配情况 但是$http_权限是空的

if ( $http_authority  ~* $host ) { return 405;  } 

谢谢