nginx1.61,配置隐藏index.php入口文件,但server都注释了,怎么操作

图片说明CI4框架url想把index.php隐藏,文档让添加location / {
try_files $uri $uri/ /index.php/$args;
}在配置文件里,但server都是注释掉的 重写server也不起作用

https://blog.csdn.net/weixin_33946020/article/details/88765804