Laravel中的子域路由问题

问题描述 投票:0回答:1

Laravel子域问题:

  1. 创建子域
  2. 将项目上传到域
  3. 从公用文件夹移动文件格式
  4. 配置index.php
  5. subdomain.laravel.com正常工作
  6. 但是在subdomain.laravel.com/home时,找不到通知404
  7. 但是在项目中存在具有索引功能的家庭控制器。
laravel subdomain
1个回答
0
投票
更像是服务器配置问题。确保将文档根指向public/,并且文件public/index.php正在捕获所有请求:

nginx:

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

https://laravel.com/docs/master/deployment的更多信息>
© www.soinside.com 2019 - 2024. All rights reserved.