1.今日碰到一个难题HTTP500內部服务器不正确,我的处理构思是先修复父项,不好再加上管理权限,这二步做了還是出错,我又查询了防护软件的系统日志和防护文档可是都没有发觉被防护的文档。
网址還是500出错,我又查验了数据库查询的配置文件沒有难题,数据库查询所属的服务器一切正常运作。
2.最后问题在于我恢复父项的时候web.config这个文件里的数据是: ?xml version="1.0" encoding="UTF-8"?
configuration
system.webServer
defaultDocument
files
clear /
add value="index.php" /
add value="index.asp" /
add value="Default.htm" /
add value="Default.asp" /
add value="Default.aspx" /
add value="index.aspx" /
add value="default.php" /
add value="index.html" /
add value="index.htm" /
/files
3.正常的web.config里面的数据应该是: ?xml version="1.0" encoding="UTF-8"?
configuration
system.webServer
defaultDocument
files
clear /
add value="index.php" /
add value="index.asp" /
add value="Default.htm" /
add value="Default.asp" /
add value="Default.aspx" /
add value="index.aspx" /
add value="default.php" /
add value="index.html" /
add value="index.htm" /
/files
/defaultDocument
handlers
remove name="PHP-7.0-7i24.com" /
remove name="PHP-5.6-7i24.com" /
remove name="PHP-5.5-7i24.com" /
remove name="PHP-5.4-7i24.com" /
remove name="PHP-5.3-7i24.com" /
remove name="PHP-5.2-7i24.com" /
add name="PHP-5.2-7i24.com" path="*.php" verb="*" modules="FastCgiModule" scriptProcessor="c:php5.2php-cgi.exe" resourceType="Either" /
/handlers
httpErrors errorMode="Detailed" /
/system.webServer
/configuration
4.注意检查500错误,其实不是权限问题就是web.config这个文件有问题。
这是一个PHP开发的网站程序。
ipv6,网络安全,建站,域名主机,均可免费咨询网络安全专家特网网络。
本文从“特网科技(56dr.com)”转载,原作者保留一切权利,若侵权请联系删除。
评论前必须登录!
注册