HOWTO: Set the Windows Media MIME Type on an Apache Web Server

ID: Q241080


The information in this article applies to:
  • Microsoft Windows Media Services version 4.0
  • Microsoft Windows NT Server NetShow Services version 3.0

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.


SUMMARY

When placing .asx, .asf, .wma, and .wax files on a Web server it is necessary to change the Web server's MIME type so that client Web browsers understand how to handle these files. If no MIME type is set for these file types, the MIME type sent from the Web server to the browser is by default text/html, and that is incorrect. This can cause your .asx or .wax files to show in the browser window instead of starting the Windows Media Player.


MORE INFORMATION

To set up Windows Media MIME types for Apache, complete the following steps.

  1. Make sure you have server administration privileges. If you do not have server administration privileges and cannot get these privileges, relay this information to your server administrator and ask your server administrator to update these MIME type extensions.


  2. Change the folders to <apache_root>/httpd/conf. Edit the Srm.conf file.


  3. Add the following lines of code to the end of the file, or to the same location as the other AddType video/* entries.
    
    AddType video/x-ms-asf asf asx
    AddType audio/x-ms-wma wma
    AddType audio/x-ms-wax wax 
    If you add these lines to the end of the file, make sure the file ends with a blank line.


  4. Save your changes and close the editor.


  5. Restart the Web server.


Additional query words: netshow wms

Keywords :
Version : :4.0; winnt:3.0
Platform : winnt
Issue type : kbhowto


Last Reviewed: September 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.