错误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.

青云互联-洛杉矶CN2弹性云限时五折,9.5元/月起,三网CN2gia回程,可选Windows,可自定义配置

官方网站:点击访问青云互联官网优惠码:五折优惠码:5LHbEhaS (一次性五折,可月付、季付、半年付、年付)活动方案:的套餐分为大带宽限流和小带宽不限流两种套餐,全部为KVM虚拟架构,而且配置都可以弹性设置1、洛杉矶cera机房三网回程cn2gia 洛杉矶cera机房                ...

宝塔面板企业版和专业版618年中活动 永久授权仅1888元+

我们一般的站长或者企业服务器配置WEB环境会用到免费版本的宝塔面板。但是如果我们需要较多的付费插件扩展,或者是有需要企业功能应用的,短期来说我们可能选择按件按月付费的比较好,但是如果我们长期使用的话,有些网友认为选择宝塔面板企业版或者专业版是比较划算的。这样在年中大促618的时候,我们也可以看到宝塔面板也有发布促销活动。企业版年付899元,专业版永久授权1888元起步。对于有需要的网友来说,还是值...

buyvm美国大硬盘VPS,1Gbps带宽不限流量

buyvm正式对外开卖第四个数据中心“迈阿密”的块存储服务,和前面拉斯维加斯、纽约、卢森堡一样,依旧是每256G硬盘仅需1.25美元/月,最大支持10T硬盘。配合buyvm自己的VPS,1Gbps带宽、不限流量,在vps上挂载块存储之后就可以用来做数据备份、文件下载、刷BT等一系列工作。官方网站:https://buyvm.net支持信用卡、PayPal、支付宝付款,支付宝付款用的是加元汇率,貌似...

http 404为你推荐
视频剪辑软件哪个好电脑视频剪辑软件哪个最好用苹果x和xr哪个好iphone X和iphone XR哪个比较好?买哪个合适?华为p40和mate30哪个好华为p40手机。跟荣耀30哪个好?等额本息等额本金哪个好到底是等额本息好还是等额本金好?核芯显卡与独立显卡哪个好独立显卡和核芯显卡有什么区别群空间登录手机能否登录群空间,如何登录yy空间登录怎么登陆YY空间诛仙青云志360云盘资源诛仙青云志百全集百度云资源360云盘转存百度云盘怎样将360云盘中文件快速转存到百度云盘广东联通网络传真如何使用广东联通如意传真?
webhosting 好看的桌面背景大图 坐公交投2700元 阿里云浏览器 200g硬盘 共享主机 傲盾官网 购买国外空间 web服务器搭建 带宽租赁 dnspod 免费网络 阿里云邮箱登陆 域名转入 云服务是什么意思 hostease winds qq空间打开很慢 e-mail 认证机构 更多