Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if the server can't find the existing file?

2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "what to do if the server cannot find the existing file". In the operation of the actual case, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

The operating system of the local area network server is Windows Server 2003. When browsing the files in the Web server established by IIS 2003, the prompt message of HTTP Error 404-File or directory not found is received. This message indicates that the target file was not found, but in fact the file you want to browse is real, but it is not a common file format. How to solve this problem?

The reason for this problem is that earlier versions of IIS included wildcard-style MIME mappings, which enabled IIS to handle any file without considering the extension. However, IIS 6.0requires high security and does not contain wildcard MIME mapping by default, so it cannot handle any type of file outside the definition of MIME mapping.

The solution is:

1. Right-click the "(ServerName) Local computer" option in the "Internet Information Services (IIS) Manager" window to execute the "Properties" shortcut command. Click the MIME Type button after opening the Server Properties dialog box, and click the New button in the MIME Type dialog box that opens.

2. Then enter the suffix name of the file that failed to open in the "extension" text box of the "MIME Type" dialog box, enter the application/octet-stream command in the text box to the right of "MIME Type" and click the "OK" button to apply the new settings. Restart IIS 6. 0 to process the type of file you just added, as shown in the figure.

Add MIME type

This is the end of the content of "what to do if the server can't find the existing file". Thank you for your reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report