企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
进入服务器的 usr\local\nginx\conf\vhost\您的域名.conf 打开上面这个文件,修改以下几个地方 1、修改域名绑定的目录 把 `root /home/wwwroot/您的域名;` 改为 ~~~ root /home/wwwroot/您的域名/public; ~~~ 2、 把 ~~~ include none.conf; #error_page 404 /404.html; include enable-php.conf; ~~~ 改为: ~~~ include other.conf; #error_page 404 /404.html; #include enable-php.conf; include enable-php-pathinfo.conf; ~~~ 3、 增加 ~~~ if (!-e $request_filename) { rewrite ^/(.+?\.php)/?(.*)$ /$1/$2 last; rewrite ^/(.*)$ /index.php/$1 last; break; } ~~~