2020-12-16
今天视频在线企业名录网站升级,升级后访问提示信息如下:

500代码是内部服务器错误,同一个服务器的其他网站可以正常打开访问,这个网站https://www.0086freecall.com
,是专门做视频在线企业名录的一个网站,因为网站改版升级,操作过程是删除了原有网站上的所有文件,再上传新的文件到网站上,就发生了这个提示,网站再也无法打开了,在本地浏览是正常的,网页都可以打开。
登录服务器查看各项设置都正常,没有改变过设置,WEB.CONFIG 文件的内容为:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>新建网页 1</title>
</head>
<body>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="http redirect to https" stopProcessing="true">
<match url="(.*)" />
<conditions>
<add input="{HTTPS}" pattern="^OFF$" />
<add input="{HTTPS_HOST}" pattern="^(localhost)" negate="true" />
</conditions>
<action type="Redirect" url="https://{HTTP_HOST}/{R:1}" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
</body>
</html>
不加S访问时提示信息如下:

和这个配置文件有关系,在服务器上访问时,也一直提示找不到WEB.CONFIG这个文件,删除文件时把这个文件给删除了,系统自动生成了一个默认的配置文件,所以无法工作了,恢复一下文件:
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<httpErrors>
<remove statusCode="403" subStatusCode="-1" />
<error statusCode="403" prefixLanguageFilePath=""
path="https://www.0086freecall.com/index.htm" responseMode="Redirect" />
</httpErrors>
<defaultDocument>
<files>
<clear />
<add value="index.htm" />
<add value="Default.htm" />
<add value="Default.asp" />
<add value="index.html" />
<add value="iisstart.htm" />
<add value="default.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>

所有的功能都正常了,作用是把403错误网页重新定向到https://www.0086freecall.com 无论是输入带S的https:还是不带http:
都可以正常打开网站了。
联系方式:

天津市奥赛德科技有限公司
天津市南开区鞍山西道445号兴科大厦637室
022-27452466
tiansw@tjosd.com
www.tjosd.com
