我有这样的项目结构
<root>/public/laravel_app/index.PHP — Laravel index file
<root>/public/index.PHP — CraftCMS index file
我想加载CraftCMS应用程序
您可以将图像存储在归档系统的文件夹中
Laravel社交网站 – 谷歌login失败“缺less所需的参数:client_id”尽pipe指定
无法在Windows下运行Laravel Homestead(grep错误)
无法通过作曲者安装laravel安装程序
https://<domain>
和https://<domain>/laravel_app Laravel应用程序
这是我的vhost.conf
server { listen 443 ssl; index index.PHP index.html; root /var/www/public; ssl_certificate /var/www/docker/certs/Nginx.crt; ssl_certificate_key /var/www/docker/certs/Nginx.key; location / { try_files $uri /index.PHP?$args; } location ~ .PHP$ { fastcgi_split_path_info ^(.+.PHP)(/.+)$; fastcgi_pass app:9000; fastcgi_index index.PHP; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param PATH_INFO $fastcgi_path_info; } }
我已经浏览了几乎所有相关的SO问题,并尝试了很多东西,所以,如果可能的话,请发送有关我的configuration的build议。
我不是一个系统pipe理员,我是一个Apache用户(它没有任何调整的工作方式),所以我很抱歉,如果我失去了一些明显的东西。
使用wkhtmltoimage和wkhtmltopdf生成带有自定义字体的图像和PDF(Linux centos6 64位,hostgator)
存储::移动给“在path找不到文件:”Laravel与Ubuntu
Laravel 5.1 – HHVM – 在WrappedHttpHandler.PHP第152行中发生S3Exception
403禁止在Nginx / 1.4.6(Ubuntu) – Laravel
你应该使2重写我认为,因为laravel_app有它自己的index.PHP重写。
server { ... root /var/www/public; ... location / { try_files $uri $uri/ /index.PHP?$args; } location /laravel_app { try_files $uri $uri/ /laravel_app/index.PHP?$args; } ... }
希望这个作品
更改
location / { try_files $uri /index.PHP?$args; }
至
location / { try_files $uri $uri/ /index.PHP?$args; }
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。