Laravel ISPConfig/Nginx指令

Laravel ISPConfig/Nginx指令,laravel,nginx,ispconfig,Laravel,Nginx,Ispconfig,我有一个laravel应用程序,我的客户端需要通过子文件夹(比如clientdomain.com/laravelapp/)访问它。我已经将laravel的/public/文件夹的内容移动到/laravelapp,并设置index.php文件,以便它引用正确的路径 我最终得到了以下结构: - /public_html (webroot of the server) - /myapp/ (this is the public folder that was inside the larave

我有一个laravel应用程序,我的客户端需要通过子文件夹(比如clientdomain.com/laravelapp/)访问它。我已经将laravel的/public/文件夹的内容移动到/laravelapp,并设置index.php文件,以便它引用正确的路径

我最终得到了以下结构:

- /public_html (webroot of the server)
    - /myapp/ (this is the public folder that was inside the laravel project)
    - /laravel-framework (this is the laravel project folder with controllers, views, vendors, etc)
当我访问主路径(clientdomain.com/laravelapp)时,它工作正常,它显示视图、图像和一切正常。问题是当我尝试访问不同的路由时,它显示404

我无法手动设置nginx conf文件,但ISPConfig有一个用于nginx指令的框

location / {
    try_files $uri $uri/ /index.php?$args;
}
对于像我这样的设置,正确的指令是什么


我提前向您表示感谢。

尝试将此添加到nginx指令框中

location / {
    try_files $uri $uri/ /index.php?$args;
}

您是如何配置laravel以侦听此特定路径上的公用文件夹的?如果你只是移动了文件夹,它就不起作用了,你需要告诉laravel它在哪里。