Microsoft KB Archive/189404

= Setting MIME Types on Web Servers for Use with Windows Media Services =

PSS ID Number: 189404

Article Last Modified on 1/19/2004

-

The information in this article applies to:


 * Microsoft Windows Media Services 4.0
 * Microsoft Windows Media Services 4.1
 * Microsoft NetShow 2.0
 * Microsoft Windows NT Server NetShow Services 3.0

-



This article was previously published under Q189404



SUMMARY
The following Multipurpose Internet Mail Extensions (MIME) types are used by NetShow Streaming Services for Windows NT:

MIME type: video/x-ms-asf

Extensions: asf,asx

This MIME type is set properly for Microsoft Internet Information Server (IIS) if you install the NetShow Streaming Services on the same computer as IIS.

If you are installing the NetShow Streaming Services for Windows NT on a computer that does not have Internet Information Server installed or you are using a Web server that is located on a different computer than the NetShow services, you may need to set the MIME type on that server.



MORE INFORMATION
The following are instructions for setting the proper MIME type on a variety of Web servers. If you require additional assistance setting the MIME type on your Web server, please contact the appropriate software vendor for technical support.

The third-party products discussed here are manufactured by vendors independent of Microsoft; we make no warranty, implied or otherwise, regarding these products' performance or reliability.

Internet Information Services 4.0

 * 1) Open the Microsoft Management Console (MMC).
 * 2) Right-click the Computer and choose Properties to open the Master properties for the server.
 * 3) Select the File Types button to configure Multipurpose Internet Mail Extensions (MIME) mappings.

NOTE: These mappings set the various file types that the Web service returns to browsers. The registered file types that are installed by default on Windows NT are listed in the File Types dialog box. File type extensions and MIME mappings are listed for selected file types in the File type details box.
 * 1) Click the New Type button in the File Types dialog box. In the File Type dialog box, type the following extension:

ASX

In the Content Type (MIME) box, type:

video/x-ms-asf
 * 1) Click OK to commit to your changes.
 * 2) Click the New Type button in the File Types dialog box. In the File Type dialog box, type the following extension:

ASF

In the Content Type (MIME) box, type:

video/x-ms-asf
 * 1) Click OK to commit to your changes, click OK to close the File Types dialog box, and then click OK to close the Master Properties dialog box.

Apache

 * 1) Ensure that you have server administration privileges.
 * 2) Change directories to /httpd/conf. Edit the file "srm.conf" and type the following line at the end of the file or where the other AddType video/* entries are found:

AddType video/x-ms-asf asf asx

NOTE: If you add the above line to the end of the file, make sure that the file ends with a blank line.
 * 1) Quit the editor and save changes, and then restart the Web server.

NCSA HTTPD

 * 1) Ensure that you have server administration privileges.
 * 2) Change directories to /conf and edit the file "mimes.types".
 * 3) Type the following line at the end of the file or where the other video/* entries are found:

video/x-ms-asf asf asx

NOTE: If you add the above line to the end of the file, make sure that the file ends with a blank line.
 * 1) Quit the editor and save changes, and then restart the Web server.

O'Reilly Website

 * 1) Click on the ORA Website yellow gear icon (right by the clock on the Taskbar), select Server Properties, and then choose the Mapping tab.
 * 2) In the List Selector section, select the Content Types button.
 * 3) In the File Extension (class) field, type .asf.
 * 4) In the MIME Content Type field, type video/x-ms-asf.
 * 5) Click Add, and then click Apply.
 * 6) In the File Extension (class) field, type .asx.
 * 7) In the MIME Content Type field, type video/x-ms-asf.
 * 8) Click Add, and then click Apply. Click OK and then quit the editor and save changes.
 * 9) Restart the Web server.

CERN HTTPD

 * 1) Ensure that you have server administration privileges.
 * 2) Change directories to /conf and edit the file "mimes.types".
 * 3) Type the following lines at the end of the file or where the other AddType ... video/* entries are found:

AddType .asf video/x-ms-asf binary AddType .asx video/x-ms-asf binary

NOTE: If you add the above lines to the end of the file, make sure that the file ends with a blank line.
 * 1) Quit the editor and save changes, and then restart the Web server.

Roxen Challenger/Spinner

 * 1) Ensure that you have server administration privileges.
 * 2) Change directories to /etc . Edit the file "extensions".

Type the following lines at the end of the file:

asf video/x-ms-asf

asx video/x-ms-asf
 * 1) Quit the editor and save changes, and restart the Web server.

Netscape Web Servers

 * 1) Ensure that you have server administration privileges.
 * 2) Change directories to \config and edit the file "mime.types".
 * 3) Type the following line at the end of the file or where the other type=video/* entries are found:

type=video/x-ms-asf exts=asf,asx

NOTE: If you add the above line to the end of the file, make sure that the file ends with a blank line.
 * 1) Quit the editor and save changes. Restart the Web server.

EMWAC for NT

 * 1) Ensure that you have server administration privileges.
 * 2) Open the HTTP server Control Panel applet and click the New Mapping button.
 * 3) Type the extension ASF into the extension field.
 * 4) Type the following into the text box for MIME type:

video/x-ms-asf
 * 1) Click OK.
 * 2) Click the New Mapping button, and type the extension ASX into the extension field.
 * 3) Type the following in the text box for MIME type:

video/x-ms-asf
 * 1) Click OK, quit the editor and save changes, and then restart the Web server.

WebSTAR/WebSTAR PS (Macintosh)

 * 1) Open the WebSTAR Administration application.
 * 2) Open the Configure menu and select Suffix Mapping.
 * 3) Set Action to BINARY, set File Suffix to ".asf", set File Type to "*", set MIME type to "video/x-ms-asf", set Creator to "*", and then click Add to add the new suffix mapping.
 * 4) Set Action to BINARY, set File Suffix to ".asx", set File Type to "*", set MIME type to "video/x-ms-asf", set Creator to "*", and then click Add to add the new suffix mapping.
 * 5) Click Update to apply the changes.

Glaci HTTPd (NetWare)

 * 1) Ensure that you have server administration privileges.
 * 2) Change directories to  (usually sys:\etc) and edit the file "mimetype.cdf".
 * 3) Type the following line at the end of the file or where the other video/* entries are found:

video/x-ms-asf asf asx

NOTE: If you add the above line to the end of the file, make sure that the file ends with a blank line.
 * 1) Save the changes to the file.

Keywords: kbDSWWMM2003Swept kbhowto KB189404

Technology: kbNetShow200 kbNetShowSearch kbWinMediaSearch kbWinMediaServices400 kbWinMediaServices410 kbWinNTsearch kbWinNTSNetShow300 kbWinNTSsearch kbZNotKeyword2

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© 2004 Microsoft Corporation. All rights reserved.