Windows Azure的和web.config中不使用PHP的网站运行 [英] Windows Azure and web.config doesn't run with PHP web site
问题描述
我必须创建一个小的应用程序具有codeIgniter,我尝试使用网址模块从Windows Azure的。
我将我的.htaccess从这个链接一>。 我的.htaccess的样子,在这样的:
选项-Indexes
RewriteEngine叙述上
重写规则^(。*)$的index.php / $ 1 [L]
结果看起来像这个:
<规则名称=治1YstopProcessing =真正的>
<匹配URL =^ $(*)/>
<作用TYPE =重写URL =/ index.php文件/ {R:1}/>
< /规则>
但是,当我去我的网站,我得到这个错误:
该页面无法显示,因为内部服务器错误有 发生了。
尝试添加以下行到你的web.config文件:
< XML版本=1.0编码=UTF-8&GT?;
<结构>
< system.webServer>
<验证validateIntegratedModeConfiguration =FALSE/>
< httpErrors errorMode =详细/>
< /system.webServer>
<的System.Web>
<的customErrors模式=关/>
< /system.web>
< /结构>
PS:不要在你的web.config重复system.webServer和System.Web程序部分。配置添加到现有的。
I've got to create a small application with CodeIgniter, and I try to use the web site module from Windows Azure.
I converted my .htaccess from this link. My .htaccess look like at this:
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:
<?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. Add the configurations to the existing one.
这篇关于Windows Azure的和web.config中不使用PHP的网站运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!