任何人都可以幫我解決 nginx“位置”問題嗎?
location / {
limit_conn zone_name 8;
}
我需要將位置修改為 /folder/index.php?file=x 其中 x 可以是字串(例如 7fe8j)
謝謝
答案1
我需要修改
location
為/folder/index.php?file=x
Where x can be an string(例如7fe8j)
簡短的回答是你不能。
limit_conn
指令僅適用於http
, server
,location
上下文。和location
/folder/index.php
指令僅與不含查詢參數 ( )的 URI ( ) 相符?file=x
。