Tag: nginx location

我怎样才能在NGINXconfiguration中的两个位置有相同的规则?

我怎样才能在NGINXconfiguration中的两个位置有相同的规则? 我已经尝试了以下 server { location /first/location/ | /second/location/ { .. .. } } 但nginx重新加载抛出这个错误: nginx: [emerg] invalid number of arguments in "location" directive**