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

A400互联1H/1G/10M/300G流量37.8元/季

A400互联是一家成立于2020年的商家,本次给大家带来的是,全新上线的香港节点,cmi+cn2线路,全场香港产品7折优惠,优惠码0711,A400互联,只为给你提供更快,更稳,更实惠的套餐。目前,商家推出香港cn2节点+cmi线路云主机,1H/1G/10M/300G流量,37.8元/季,云上日子,你我共享。A400互联优惠码:七折优惠码:0711A400互联优惠方案:适合建站,个人开发爱好者配置...

Megalayer美国独立服务器新用户首月优惠350元(30M优化不限流量)

Megalayer 商家在开始看到有提供香港服务器、香港站群服务器的时候有介绍过,后来就一直没有怎么关注。但是前几天有看到网友使用到他们家的美国独立服务器问其如何的,但是我没有使用过就不好评论,这不前几天也有介绍到Megalayer美国独立服务器。以及我们也有看到商家有提供美国站群服务器和美国大带宽服务器产品,可选30M不限制流量CN2优化线路,以及100M不限制流量国际带宽线路。新年元旦后,Me...

wordpress公司网站模板 wordpress简洁高级通用公司主题

wordpress公司网站模板,wordpresss简洁风格的高级通用自适应网站效果,完美自适应支持多终端移动屏幕设备功能,高级可视化后台自定义管理模块+规范高效的搜索优化。wordpress公司网站模板采用标准的HTML5+CSS3语言开发,兼容当下的各种主流浏览器: IE 6+(以及类似360、遨游等基于IE内核的)、Firefox、Google Chrome、Safari、Opera等;同时...

http 404为你推荐
麒麟820和980哪个好820和980哪个处理器好?集成显卡和独立显卡哪个好集成显卡与独立显卡的区别。燃气热水器和电热水器哪个好燃气热水器和电热水器的区别是什么,哪个比较好?江门旅游景点哪个好玩的地方江门有什么地方好玩的?唱K 行街 免答三国游戏哪个好玩三国类单机游戏哪个最好玩啊?无纺布和熔喷布口罩哪个好一次性口罩的熔喷布和KN95的熔喷布有什么不同?尼康和佳能单反哪个好尼康和佳能哪个好啊?qq空间登录不了为什么我的QQ空间登陆不上?yy空间登录怎么进入YY音乐空间辽宁联通网上营业厅网联通宽带好不好用
虚拟主机软件 美国免费虚拟主机 域名抢注 上海域名注册 个人域名备案 罗马假日广场 westhost blackfriday bluehost 美国主机代购 tightvnc 云鼎网络 北京双线机房 东莞服务器 吉林铁通 网通服务器 监控服务器 国外在线代理服务器 服务器防火墙 实惠 更多