我試圖在Windows Server 2012 R2上部署我的laravel應用程序,但在嘗試訪問該網站時出現此錯誤。Laravel IIS HTTP錯誤500.19 - 內部服務器錯誤
這是我的web.config文件:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Rule 1" stopProcessing="true">
<match url="^(.*)/$" ignoreCase="false" />
<action type="Redirect" redirectType="Permanent" url="/{R:1}" />
</rule>
<rule name="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>
你在服務器上安裝了PHP嗎?你能否用相關的PHP配置細節來更新這個問題,比如如果你使用FastCGI或其他的? – sisve