php - Laravel 中的所有插入请求在 Plesk 服务器上返回(500 服务器错误)
问题描述
我在Plesk服务器上上传了我的Laravel项目。
首先,我在所有路线上都有(500 服务器错误)。但是当我将(ROOT 目录)设置为(laravel\public)时,我解决了这个问题。
但是现在我在所有插入请求中都有一个(500 服务器错误)。如何在 Plesk 服务器上解决这个问题。
我在谷歌上显示.htaccess文件在Plesk 服务器上不起作用,所以我必须处理 (public/web.config) 但我没有任何详细信息如何处理该文件。web.config 内容:
<system.webServer>
<rewrite>
<rules>
<rule name="Imported Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="Imported Rule 2" stopProcessing="true">
<match url="^" ignoreCase="false" />
<conditions>
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>```
解决方案
推荐阅读
- java - 如何使用 ASM 库从库中识别被覆盖的方法?
- python - 从文件创建字典(包含具有多个值的键)
- r - 在rcpp犰狳中将向量与double进行比较
- android - SafetyNet:DDoS 滥用是否计入每日 10.000 次请求限制
- jquery - 关于 jquery / fullcalendar 版本不兼容?
- javascript - 表单操作在 vue-bootstrap 表单中没有响应
- mysql - 如何导入转储 sql 文件 -DOCKER
- arrays - 以文件列表为值的关联数组…
- javascript - [Javascript; Google Earth Engines} 错误:导出的波段必须具有兼容的数据类型;发现不一致的类型:Float32 和 UInt16
- ffmpeg - 如何让icecast从ffmpeg中继mp3流的元数据?