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

昔日数据:香港云服务器(2G防御)、湖北云服务器(100G防御),首月5折,低至12元/月

昔日数据,国内商家,成立于2020年,主要销售湖北十堰和香港HKBN的云服务器,采用KVM虚拟化技术构架,不限制流量。当前夏季促销活动,全部首月5折促销,活动截止于8月11日。官方网站:https://www.xrapi.cn/5折优惠码:XR2021湖北十堰云服务器托管于湖北十堰市IDC数据中心,母鸡采用e5 2651v2,SSD MLC企业硬盘、 rdid5阵列为数据护航,100G高防,超出防...

UCloud 618活动:香港云服务器月付13元起;最高可购3年,AMD/Intel系列

ucloud6.18推出全球大促活动,针对新老用户(个人/企业)提供云服务器促销产品,其中最低配快杰云服务器月付5元起,中国香港快杰型云服务器月付13元起,最高可购3年,有AMD/Intel系列。当然这都是针对新用户的优惠。注意,UCloud全球有31个数据中心,29条专线,覆盖五大洲,基本上你想要的都能找到。注意:以上ucloud 618优惠都是新用户专享,老用户就随便看看!点击进入:uclou...

星梦云-年中四川100G高防云主机月付仅60元,西南高防月付特价活动,,买到就是赚到!

官方网站:点击访问星梦云活动官网活动方案:机房CPU内存硬盘带宽IP防护流量原价活动价开通方式成都电信优化线路4vCPU4G40G+50G10Mbps1个100G不限流量210元/月 99元/月点击自助购买成都电信优化线路8vCPU8G40G+100G15Mbps1个100G不限流量370元/月 160元/月点击自助购买成都电信优化线路16vCPU16G40G+100G20Mb...

http 404为你推荐
麒麟990和骁龙865哪个好高通865处理器怎么样?值得入手吗?浏览器哪个好用浏览器哪个好浮动利率和固定利率哪个好银行贷款是选固定利率好还是浮动利率二手车网站哪个好二手车交易网哪个好?手机炒股软件哪个好手机股票交易哪个平台最好红茶和绿茶哪个好红茶和绿茶,哪个好?看书软件哪个好什么读书app好用qq空间登录器QQ空间校友网页自动登陆器空间登录器qq空间登录不了怎么办YunOS手机显示yunos停止运行是什么意思
siteground 香港cdn 韩国电信 论坛空间 嘉洲服务器 ca4249 双11秒杀 爱奇艺vip免费试用7天 卡巴斯基免费试用 怎么建立邮箱 个人免费主页 yundun 域名和主机 七牛云存储 apnic 好看的空间 双十二促销 上海联通 空间排行榜 reboot 更多