错误http 错误 404 - 文件或目录未找到 http 错误 401.2 - 未经授权(HTTP Error 404 - file or directory failed to find HTTP error 401.2 - without authorization)

http 404  时间:2021-02-01  阅读:()

http错误404 -文件或目录未找到http错误401. 2 -未经授权

HTTP Error 404- file or directory failed to find HTTP error

401.2 - without authorization

HTTP Error 404 - file or directory failed to find HTTP error

401.2 - unauthorized: access due to server configurationrejected.

Problem 1: the parent path is not enabled

Symptomati c example:

Server.MapPath () error'ASP 0175: 80004005'

Path characters are not allowed

/0709/dqyllhsub/news/OpenDatabase.asp, line 4

The character ' . . ' not allowed in Path MapPath' s parameters.Reason analysis:

Many Web pages to use statements such as / format (i.e. to apage, that is, the father path) and IIS6.0 for security reasons,this option is off by default.

Resolvent

In the IIS home directory attributes - > - > configuration- >options. The "enable parent path" in front of tick. Confirmrefresh.

The Web extension for the problem 2:ASP is not configuredproperly (the same applies to ASP.NET, CGI)

Symptomati c example:

HTTP Error 404 - file or directory not found.

Reason analysis:

In IIS6.0, the new web program extends this option, where youcan allow or disable programs such as ASP, ASP.NET, CGI, IDC,etc. by default, ASP and other programs are prohibited.Resolvent

IntheWeb service extension in IIS, selectActiveServerPages,and click "allow"".

Problem 3: improper configuration of authentication

Symptomati c example:

HTTP error 401.2 - unauthorized: access denied due to serverconf igurat ion.

Reason analysis: IIS supports the following Web authenticationmethods:

Anonymous Authentication

IIS creates the IUSR_computer name account (where the computername is the name of the server running IIS) that is used toauthenticate the anonymous users when they request Web content.This account grants the user the local logon authority. You canreset anonymous user access to using any valid Windows account.Basic authentication

Using basic authentication can restrict access to files on aNTFS format Web server. With basic authentication, the usermust enter credentials, and access is basedonuser ID. The userID and password are sent between the networks in plain text.Windows integrated authentication

Windows integrated authentication is more secure than basicauthentication and works well in an intranet environment whereusers have Windows domain accounts. In integrated Windowsauthentication, the browser attempts to use the credentialsthat the current user uses in the domain login process andprompts the user to enter auser name and password if the attemptfails. If youuse integrated Windows authentication, the user' spassword will not be sent to the server. If the user logs into the local computer as a domain user, he does not have toauthenticate again when accessing the network computer in thisd oma i n.

Digest authentication

Authentication overcomes many shortcomings of basicauthentication. When using digest authentication, passwords

are not sent in plain text. In addition, you can use digestauthentication through proxy servers. Authentication uses achallenge / response mechanism (integrated with the Windowsauthentication mechanism) , where the password is sent inencrypted form.

.NET Passport authentication

Microsoft.NET Passport is a user authentication service thatallows single sign on security, allowingusers tobemore securewhen accessing.NET Passport enabled Web sites and services.Sites that enable.NET Passport authenticate users by the *.NETPassport central server. However, the central server does notauthorize or deny a particular user access to the various.NETenabled Passport sites.

Resolvent

Configure different authentication requirements (usuallyanonymous authentication, which is the authentication methodused by most sites) .

The authentication options configuration in the attribute - >Security > authentication and access control under IIS.Problem 4: IP restrictions on improper configuration

Symptomati c example:

HTTP error 403.6-no access: the client' s IP address is denied.

Reason analysis:

IIS provides a mechanism for IP limit, you can limit a: P cannot access the site through the configuration, or limit onlysome IP can access the site, and if the client is in the rangeof IP to stop you, or not in the scope of your permission, itwill appear error.

Resolvent

Enter the IIS attribute - > Security ->IP address and domainname restrictions. If you want to restrict access to certainIP addresses, you need to select authorization access, andclick Add to select the IP address that is not allowed.Conversely, you can only allow access to certain IP addresses.The problem 5:IUSR account is disabled

Symptomati c example:

HTTP error 401. 1 - unauthorized: access denied due to invalidcredentials.

Reason analysis:

The account name used by the user for anonymous access is theIUSR_machine name, so if the account is disabled, the user willnot be able to access it.

Terms of settlement

Control panel - > > > management tool of computer managementfor local users and groups, will enable IUSR_machine accountn ame.

Problem 6:NTFS bad permission settings

Symptomati c example:

HTTP error 401. 3-unauthorized: access denied due to ACL' s setof requested resources.

Reason analysis:

The user of the Web client is part of the user group, so if theNTFS permissions of the file are insufficient (for example, noread permissions) , the page cannot be accessed.

Terms of settlement

Enter the security tab of this folder, configure thepermissions for user, or at least read permissions. About theNTFS permissions settings, no more here.

Problem 7: IWAM account is out of sync

Symptomati c example:

HTTP 500 - internal server error

Reason analysis:

The IWAM account is a built-in account automatically createdbythe systemwhenthe IIS is installed. After the establishmentof Active Directory IWAM account, IIS metabase database andCOM+ application of three party in common use, the accountpassword is three were saved, synchronization and by theoperating system is responsible for the preservation of thethree party IWAM password. System password synchronization onthe IWAM account sometimes fails, resulting in IWAM accountpassword is not uniform.

Terms of settlement

If there is a AD, select Start > programs > management tool->Active Directory users and computers. Set the password forthe IWAM account.

Run the c:\\Inetpub\\AdminScripts>adsutil SETw3svc/WAMUserPass + password to synchronize the IIS metabasedatabase password

Run cscript c:\\inetpub\\adminscripts\\synciwam.vbs -v tosynchronize the password of the IWAM account in the COM+application

The problem 8:MIME setup problem causes some types of files tonot be downloaded (as ISO)

Symptomati c example:

HTTP Error 404 - file or directory not found.

Reason analysis:

IIS6.0 canceled support for certain MIME types, such as ISO,which caused the client to download errors.

Resolvent

The new->HTTP ->MIME type attribute head - > in IIS. In thefollowing dialogbox, the extension is filledwith. ISO, and theMIME type is application.

In addition, firewall blocking, ODBC configuration errors, Webserver performance restrictions, thread restrictions and otherfactors are also the possible reasons for the IIS server' sfailure to access and are no longer mentioned here.

无视CC攻击CDN ,DDOS打不死高防CDN,免备案CDN,月付58元起

快快CDN主营业务为海外服务器无须备案,高防CDN,防劫持CDN,香港服务器,美国服务器,加速CDN,是一家综合性的主机服务商。美国高防服务器,1800DDOS防御,单机1800G DDOS防御,大陆直链 cn2线路,线路友好。快快CDN全球安全防护平台是一款集 DDOS 清洗、CC 指纹识别、WAF 防护为一体的外加全球加速的超强安全加速网络,为您的各类型业务保驾护航加速前进!价格都非常给力,需...

€4.99/月Contabo云服务器,美国高性价比VPS/4核8G内存200G SSD存储

Contabo是一家运营了20多年的欧洲老牌主机商,之前主要是运营德国数据中心,Contabo在今年4月份增设新加坡数据中心,近期同时新增了美国纽约和西雅图数据中心。全球布局基本完成,目前可选的数据中心包括:德国本土、美国东部(纽约)、美国西部(西雅图)、美国中部(圣路易斯)和亚洲的新加坡数据中心。Contabo的之前国外主机测评网站有多次介绍,他们家的特点就是性价比高,而且这个高不是一般的高,是...

欧路云(22元) 新增美国Cera线路VPS主机且可全场8折

欧路云(oulucloud) 商家在前面的文章中也有陆续介绍过几次,这不今天有看到商家新增加美国Cera线路的VPS主机,而且有提供全场八折优惠。按照最低套餐最低配置的折扣,月付VPS主机低至22元,还是比较便宜的。不过我们需要注意的是,欧路云是一家2021年新成立的国人主机商,据说是由深圳和香港的几名大佬创建。如果我们有介意新商家的话,选择的时候谨慎且月付即可,注意数据备份。商家目前主营高防VP...

http 404为你推荐
相机内存卡数据恢复相机内存卡坏了,数据有办法恢复吗?租车平台哪个好想网上租车,选什么平台好?莫代尔和纯棉哪个好莫代尔好还是棉好985和211哪个好985和211哪个强?具体分析点。华为p40和mate30哪个好mate30 5G和p40 5G有什么区别?浏览器哪个好用哪款浏览器好用录音软件哪个好有什么录音软件好用??等额本息等额本金哪个好等额本金和等额本息的区别哪个好手机音乐播放器哪个好手机音乐播放器音质好的APP是那款手机音乐播放器哪个好手机音乐播放器什么的好?
www二级域名 免费试用vps 淘宝抢红包攻略 wavecom 标准机柜尺寸 租空间 服务器干什么用的 免费申请网站 33456 购买国外空间 怎么建立邮箱 web服务器是什么 百度云加速 帽子云排名 xuni 徐州电信 云服务是什么意思 阿里云邮箱申请 免费赚q币 globalsign 更多