Nginx 设置无法访问根目录
要求不能访问根目录,只能访问有路径的页面,并且强制要求访问根目录会跳转到 404 页面。
123456location / { if ($request_uri = '/') {
2023-09-20
Nginx
,
Config