HTTP-Fehler 500.19 - 内部服务器错误 [英] HTTP-Fehler 500.19 - Internal Server Error

查看:100
本文介绍了HTTP-Fehler 500.19 - 内部服务器错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,我有一个问题,我想用我的现场drupal网站作为本地测试网站。所以我在我的本地计算机上安装了iis7.5,php5和mysql。

问题是如果我想在浏览器中打开网站,我收到一条错误消息:



HTTP-Fehler 500.19 - 内部服务器错误



Auf die angeforderte Seite kann nicht zugegriffen werden,dadiezugehörigenKonfigurationsdatenfürdieSeite ungültigsind。



英文字样如下:

无法打开网站,导致该网站的配置数据无效



还有一些东西是写的:



配置来源:



-1;

0;



你们中有谁知道该怎么办?



Webconfig:





 <?  xml    版本  =  1.0   编码  =  UTF-8  >  
< configuration >
< system.webServer >
<! - 不显示映射到目录的URL的目录列表。 - >
< directoryBrowse 已启用 = false / >

<! -
默认情况下未委托缓存配置。默认情况下,某些主机可能不会将缓存
配置委派给网站所有者,这可能会在用户安装时导致错误。如果您愿意并且允许启用缓存
- >

,请取消注释
<! -
< caching>
< profiles>
< add extension =。phppolicy =DisableCachekernelCachePolicy =DisableCache/>
< add extension =。htmlpolicy =CacheForTimePeriodkernelCachePolicy =CacheForTimePeriodduration =14:00:00/>
< / profiles>
< / caching>
- >


< 重写 >
< ; 规则 >
<! - rule name =postinst-redirectstopProcessing =true>
< match url =。 />
< action type =Rewriteurl =postinst.php/>
< / rule 0
- >


< rule name = 保护文件和目录不被窥探 stopProcessing = true >
< match url = (发动机| INC |信息|安装|模块|轮廓|测试| PO | SH | .SQL | postinst.1 |主题| TPL(.PHP)|?xtmpl | SVN基)。 $ | ^(code-style.pl |条目|。库|根|标签|模板|全wcprops |条目|格式)$ / >
< action type = CustomResponse statusCode = 403 subStatusCode = < span class =code-keyword> 0 statusReason = 禁止 statusDescription = 禁止访问。 / >
< / rule >
< rule name = Force请求不存在的favicon.ico的简单错误消息 stopProcessing = true >
< match url = favicon.ico / < span class =code-keyword>>
< action type = CustomResponse statusCode = 404 subStatusCode = 1 statusReason = 找不到文件 statusDescription = 找不到请求的文件favicon.ico / >
< / rule >
<! - 使用www重定向所有用户访问网站前缀,
http://example.com / ...将重定向到http://www.example.com / ...)
适应并取消注释以下内容:
< span class =code-comment> - >

<! -
< rule name =重定向添加wwwstopProcessing =true>
< match url =^(。)$ignoreCase =false/>
< conditions>
< add input ={HTTP_HOST}pattern =^ example.com $/>
< / conditions>
< action type =RedirectredirectType =Permanenturl =http://www.example.com/ {R:1}/>
< / rule>
- >

<! - 重定向所有用户以访问网站而不使用www。前缀,
http://www.example.com / ...将被重定向到http://example.com / ...)
适应并取消注释以下内容:
< span class =code-comment> - >

<! -
< rule name =重定向删除wwwstopProcessing =true>
< match url =^(。)$ignoreCase =false/>
< conditions>
< add input ={HTTP_HOST}pattern =^ www.example.com $/>
< / conditions>
< action type =RedirectredirectType =Permanenturl =http://example.com/ {R:1}/>
< / rule>
- >

<! - 将x形式的URL重写为index.php?q = x形式。 - >
< 规则 名称 = 短网址 stopProcessing = true >
< 匹配 < span class =code-attribute> url = ^(。*)$ ignoreCase = false / >
< 条件 < span class =code-keyword>>
< add 输入 = {REQUEST_FILENAME} matchType = IsFile ignoreCase = false < span class =code-attribute> negate = true / >
< add input = { REQUEST_FILENAME} matchType = IsDirectory ignoreCase = false 否定 = true / >
< ; add 输入 = {URL} pattern = ^ / favicon.ico $ ignoreCase = false 否定 = true / >
< / conditions >
< action type = 重写 url = index.php?q = {R:1} appendQueryString = true / >
< / rule >
< / rules >
< / rewrite >

< ! - httpErrors>
< remove statusCode =404subStatusCode = - 1/>
< error statusCode =404prefixLanguageFilePath =path =/ index.phpresponseMode =ExecuteURL/>
< / httpErrors
- >


< defaultDocument >
<! - 设置默认文档 - >
< 文件 >
< remove value = index.php / >
< add value = index.php / >
< / files >
< / defaultDocument < span class =code-keyword>>
< / system.webServer >
< /配置 >





提前致谢

解决方案

| ^(code-style.pl | Entries。| Repository | Root | Tag | Template | all-wcprops | entrie s | format)


/ < span class =code-keyword>>
< action type = CustomResponse statusCode = 403 subStatusCode = 0 statusReason = 禁止 statusDescription = 禁止访问。 / >
< / rule >
< < span class =code-leadattribute> rule name = 强制执行简单错误消息,请求不存在的favicon.ico stopProcessing = true >
< 匹配 < span class =code-attribute> url = favicon.ico / >
< action type = CustomResponse statusCode = 404 subStatusCode = 1 statusReason = < span class =code-keyword>找不到文件 statusDescription = 找不到请求的文件favicon.ico / >
< / rule >
<! - 重定向所有用户以访问网站WITH 'www。'前缀,
http://example.com / ...将重定向到http://www.example.com / ...)
适应并取消注释以下内容:
< span class =code-comment> - >

<! -
< rule name =重定向添加wwwstopProcessing =true>
< match url =^(。)


ignoreCase =false/>
< conditions>
< add input ={HTTP_HOST}pattern =^ example.com

Hello you out there, i have a question, i wanted to use my live drupal site as local test site. So i intalled iis7.5, php5 and mysql on my local computer.
The problem is if i want to open the site in my browser, i get a error message:

HTTP-Fehler 500.19 - Internal Server Error

"Auf die angeforderte Seite kann nicht zugegriffen werden, da die zugehörigen Konfigurationsdaten für die Seite ungültig sind."

In english something like:
"Cant open the site, cause the configuration data for that site is invalid"

There is also something writte:

Configurationsource:

-1;
0;

Does anyone out of you know what to do?

Webconfig:


<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <system.webServer>
  <!-- Don't show directory listings for URLs which map to a directory. -->
    <directoryBrowse enabled="false" />

    <!--
       Caching configuration was not delegated by default. Some hosters may not delegate the caching
       configuration to site owners by default and that may cause errors when users install. Uncomment
       this if you want to and are allowed to enable caching
     -->
    <!--
    <caching>
      <profiles>
        <add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />
        <add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="14:00:00" />
      </profiles>
    </caching>
     -->

    <rewrite>
      <rules>
        <!-- rule name="postinst-redirect" stopProcessing="true">
          <match url="." />
          <action type="Rewrite" url="postinst.php"/>
        </rule 0-->

        <rule name="Protect files and directories from prying eyes" stopProcessing="true">
          <match url=".(engine|inc|info|install|module|profile|test|po|sh|.sql|postinst.1|theme|tpl(.php)?|xtmpl|svn-base)$|^(code-style.pl|Entries.|Repository|Root|Tag|Template|all-wcprops|entries|format)$" />
          <action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." />
        </rule>
        <rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true">
          <match url="favicon.ico" />
          <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" />
        </rule>
                <!-- To redirect all users to access the site WITH the 'www.' prefix,
                http://example.com/... will be redirected to http://www.example.com/...)
                adapt and uncomment the following:   -->
                <!--
        <rule name="Redirect to add www" stopProcessing="true">
          <match url="^(.)$" ignoreCase="false" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^example.com$" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="http://www.example.com/{R:1}" />
        </rule>
                -->
                <!-- To redirect all users to access the site WITHOUT the 'www.' prefix,
                http://www.example.com/... will be redirected to http://example.com/...)
                adapt and uncomment the following:   -->
                <!--
        <rule name="Redirect to remove www" stopProcessing="true">
          <match url="^(.)$" ignoreCase="false" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="^www.example.com$" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="http://example.com/{R:1}" />
        </rule>
                -->
        <!-- Rewrite URLs of the form 'x' to the form 'index.php?q=x'. -->
        <rule name="Short URLS" stopProcessing="true">
          <match url="^(.*)$" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            <add input="{URL}" pattern="^/favicon.ico$" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Rewrite" url="index.php?q={R:1}" appendQueryString="true" />
        </rule>
      </rules>
    </rewrite>

    <!-- httpErrors>
      <remove statusCode="404" subStatusCode="-1" />
      <error statusCode="404" prefixLanguageFilePath="" path="/index.php" responseMode="ExecuteURL" />
    </httpErrors -->

    <defaultDocument>
     <!-- Set the default document -->
      <files>
        <remove value="index.php" />
        <add value="index.php" />
      </files>
    </defaultDocument>
  </system.webServer>
</configuration>



Thanks in advance

解决方案

|^(code-style.pl|Entries.|Repository|Root|Tag|Template|all-wcprops|entries|format)


" /> <action type="CustomResponse" statusCode="403" subStatusCode="0" statusReason="Forbidden" statusDescription="Access is forbidden." /> </rule> <rule name="Force simple error message for requests for non-existent favicon.ico" stopProcessing="true"> <match url="favicon.ico" /> <action type="CustomResponse" statusCode="404" subStatusCode="1" statusReason="File Not Found" statusDescription="The requested file favicon.ico was not found" /> </rule> <!-- To redirect all users to access the site WITH the 'www.' prefix, http://example.com/... will be redirected to http://www.example.com/...) adapt and uncomment the following: --> <!-- <rule name="Redirect to add www" stopProcessing="true"> <match url="^(.)


" ignoreCase="false" /> <conditions> <add input="{HTTP_HOST}" pattern="^example.com


这篇关于HTTP-Fehler 500.19 - 内部服务器错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆