[英]Windows Azure and web.config doesn't run with PHP web site
I've got to create a small application with CodeIgniter, and I try to use the web site module from Windows Azure. 我必须使用CodeIgniter创建一个小型应用程序,然后尝试使用Windows Azure中的网站模块。
I converted my .htaccess from this link . 我从此链接转换了.htaccess。 My .htaccess look like at this: 我的.htaccess看起来像这样:
Options -Indexes
RewriteEngine on
RewriteRule ^(.*)$ index.php/$1 [L]
The result look like at this: 结果如下所示:
<rule name="rule 1y" stopProcessing="true">
<match url="^(.*)$" />
<action type="Rewrite" url="/index.php/{R:1}" />
</rule>
But, when I go in my web site, I've got this error: 但是,当我进入网站时,出现了以下错误:
The page cannot be displayed because an internal server error has occurred. 由于发生内部服务器错误,因此无法显示该页面。
Try adding the following lines to your web.config file: 尝试将以下行添加到您的web.config文件中:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<httpErrors errorMode="Detailed" />
</system.webServer>
<system.web>
<customErrors mode="Off" />
</system.web>
</configuration>
PS: Do not repeat system.webServer and system.web sections in your web.config. PS:不要在web.config中重复system.webServer和system.web部分。 Add the configurations to the existing one. 将配置添加到现有配置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.