更新时间:2023-11-28 10:03:04
如果要隔离单个 URI /
,请使用 location =
变体.试试:
If you want to isolate the single URI /
, use the location =
variant. Try:
location = / { rewrite ^ /new/index.html last; }
这将执行内部重写.有关详细信息,请参阅本文档.
This will perform an internal rewrite. See this document for details.