Windows Azure和web.config不能在PHP网站上运行


Windows Azure and web.config doesn't run with PHP web site

我必须用CodeIgniter创建一个小应用程序,我尝试使用Windows Azure的网站模块。

我从这个链接转换了我的。htaccess。我的。htaccess是这样的:

Options -Indexes
RewriteEngine on
RewriteRule ^(.*)$ index.php/$1 [L]

结果如下:

<rule name="rule 1y" stopProcessing="true">
    <match url="^(.*)$"  />
    <action type="Rewrite" url="/index.php/{R:1}"  />
</rule>

但是,当我进入我的网站,我有这个错误:

该页面无法显示,因为内部服务器错误发生。

尝试将以下行添加到您的web中。配置文件:

<?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:不要重复系统。web服务器和系统。Web .config中的Web部分。