【发布时间】:2023-03-26 00:49:02
【问题描述】:
除了/blog 提供403 forbidden (nginx) 的路线外,我的生产网站上的所有路线都运行良好。
在 web.php
中Route::get('/blog', [BlogController::class, 'index'])->name('blog.index');
Route::get('/blog/{slug}', [BlogController::class, 'post'])->name('blog.post');
Route::get('/blog/preview/{slug}', [BlogController::class, 'postPreview'])->name('blog.post.preview');
我已经通过 Forge 和 Envoyer 进行了部署,并且没有更改服务器配置中的任何内容。
【问题讨论】:
-
查看你的public文件夹下是否有可能冲突的blog文件夹
-
@apokryfos 有,谢谢!随意张贴作为答案,我会接受。