In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to set up IIS to support Flv. The article is rich in content and analyzed and described from a professional point of view. I hope you can get something after reading this article.
Most of the hosts in China are Win2003. Files in FLV format cannot be played after they are uploaded to the server. By default, the output FLV format is not specified. Although it can be seen in FTP, it cannot be accessed through http, so it cannot be played. The reason is that WIN2003 strengthens IIS6's MIME authentication, showing 404 errors in all unregistered extension file formats. Manually add the MIME mapping relationship in the HTTP header-> MIME in the site attributes of IIS. MIME type: video/x-flv extension: .flv, which can be played through the Flash7+ client Load.
The problem of "virtual host does not support Flv format file": for example, your Flv file name is 1.flv, build a directory called "1.flv" on the virtual host, put your Flv format file in this directory, and rename it to: index.htm, so that the file name and address in the player remain unchanged.
Let IIS support the detailed setting method of Flv:
IIS-- > website-> Properties-> HTTP performance-> MIME type-> New:
Extension: .flv
MIME type: flv-application/octet-stream
Recently, I have been working on a new project, using php+mysql to implement report statistics similar to EXCEL. The development process is not easy, one of which is the problem that FLV video files cannot be played, although it is not complicated, I think it is necessary to share the solution, and you may be worried about it.
With the rise of major video websites, FLV format video files are also known to us. To meet the needs of the project, you need to put the FLV format video file on your own server. The first time I came into contact with a FLV video, to be honest, it was quite new, but then came the problem. The FLV video could not be played and kept prompting the loading status. Check the embedded HTML code, and it's all correct. I wonder how convenient it was to upload videos directly to sites such as Tudou and Youku and then quote its links.
The solution to the failure of playing FLV video files
Casually Google, found a lot of FLV format video files can not be played problems. In fact, it is not complicated, that is, the MIME type in IIS does not support video files with .flv extension, you can add it yourself. The following picture and text tutorials will tell you the detailed solution!
1) Open the IIS manager, right-click the-> attribute on your computer name, and find the "MIME type", as shown in the figure:
What is the MIME type? The MIME type is the type in which a file with a certain extension is set to be opened by an application. When the extension file is accessed, the browser automatically uses the specified
Open it with the program. It is often used to specify some client-defined file names, as well as how to open media files.
2) perform the following actions: click "MIME Type"-> "New"-> enter the extension ".flv"-> enter MIME type "flv-application/octet-stream"-> OK, as follows:
3) restart the IIS Manager and refresh the web page. Is the FLV video file ready to play?
Tip: if you don't have your own server and are a virtual host user, you can't add "MIME type" to your computer. Don't worry, you can change the .flv suffix of the video file to .swf, which can also be played.
The above is the FLV format video file can not play the solution, as long as find the reason, the right medicine, or very simple. As an example, it is easy to solve similar problems in the future.
You have to set the content.
1: Active Server Pages,Internet data connectors, RPC proxy service extensions, and include files on the server side must be set to allow status in the Web Services extension
2: "site"-"attribute -" Home directory-"configuration -" option-"start the parent path"
3: "site"-"Properties -" Services-"Select" run the WWW service in IIS5.0 isolation mode in isolation mode "
4: start-programs-Administrative tools-Service. Locate the RPC service and double-click-"Login -" to allow the service to interact with the desktop
This allows you to run asp's Server.CreateObject ("WScript.Shell") under windows2003
Originally, I wanted to use asp.net to do this program, and this problem has always existed in asp.netzh. So we should use asp.
The function can be implemented in asp. I didn't do it under asp.net, if you are interested, you can have a try!
2: solution:
① removes or renames the following dangerous ASP components:
Wscript.Shell 、 Wscript.Shell.1 、 Wscript.Network 、 Wscript.Network.1 、 adodb.stream 、 Shell.application
Start-> run-> Regedit, open the registry editor, press Ctrl+F to find, enter the above Wscript.Shell and other component names and the corresponding ClassID in turn, and then delete or change the name (it is recommended that you change the name, if some web ASP programs take advantage of the above components, then you only need to use our changed component name when writing ASP code. Of course, if you are sure that the above components are not used in your ASP program, go straight
Then delete some peace of mind ^ _ ^, according to the general rule will not do these components. After deletion or renaming, iisreset will be effective after restarting IIS.)
[note: as Adodb.Stream is a component that will be used in many web pages, it is recommended to deal with it if your server is a virtual host.]
② is about the security problem of File System Object (classid:0D43FE01-F093-11CF-8940-00A0C9054228), which is often referred to as FSO. If your server needs to use FSO, (some virtual host servers generally need FSO function), you can refer to another article on FSO security solutions: Microsoft Windows 2000 Server FSO security solutions. If you are sure you don't need it, you can unregister this component directly.
③ 's method of directly unregistering and uninstalling these dangerous components: (practical for not wanting to use cumbersome methods such as ① and ② classes)
Uninstall the wscript.shell object, under cmd or run directly: regsvr32 / u% windir%\ system32\ WSHom.Ocx
Uninstall the FSO object, under cmd or run directly: regsvr32.exe / u% windir%\ system32\ scrrun.dll
Uninstall the stream object under cmd or run: regsvr32 / s / u "C:\ Program Files\ Common Files\ System\ ado\ msado15.dll"
If you want to restore, you only need to remove / U to re-register the above related ASP components such as: regsvr32.exe% windir%\ system32\ scrrun.dll
④ about using set domainObject = GetObject ("WinNT://.") in Webshell To obtain the process, service, user and other information of the server, you can stop and disable the Workstation [providing network links and communications] in the service, that is, Lanmanworkstation service. After this process, the Webshell display process will be blank.
3 after dealing with the ASP dangerous components according to the above methods 1 and 2, we tested them with Ajiang's asp probe, and the "server CPU details" and "server operating system" could not be found at all, and the content was blank. Running the cmd command with the ocean test Wsript.Shell also indicates that Active cannot create an object. Everyone can no longer worry about the ASP Trojan horse endangering the security of the server system.
Of course, server security is far from these, here is only for you to introduce some of my experience in dealing with ASP Trojans and Webshell. In the next article, we will show you how to simply prevent others from executing commands such as net user on the server, preventing overflow class attacks from getting cmdshell, and implementing the simplest and most effective ways to add users, change NTFS permissions to the terminal login, and so on.
These are the steps that the editor shared to let IIS support Flv. If you happen to have similar doubts, please refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.
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: 222
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.