CQ-CSER

计算机爱好者

Silverlight Mime types in IIS6 and Apache

Posted on | 四月 10, 2010 | 2 Comments

原文:http://blogs.technet.com/jorke/archive/2007/09/11/silverlight-mime-types-in-iis6.aspx

There are 3 MIME types required

  • .xaml    application/xaml+xml
  • .xap     application/x-silverlight-app
  • .xbap    application/x-ms-xbap
  • To add the MIME types to IIS6:

    1. Choose your website in IIS
    2. Open the context menu and choose “Properties”
    3. Select the register “HTTP-Header”
    4. Click on the button labeled “MIME Types…”
    5. If .xaml is not yet listed as a type, choose “New”
    6. Enter the following description:

    Extension: .xaml
    MIME type: application/xaml+xml

    7. Click “Ok”,
    8. Got to 5 and add xap and xbap as above then goto 9 :)
    9. Choose “Apply” and you’re set!

    To do this in Apache 2.2: Using mod_rewite or mod_mime with AddType

    1. Open httpf.conf in your favorite text editor
    2. Search for <IFModule mime_module>
    3. Add AddType application/xaml+xml .xaml + all the other types above
    4. Close and save the httpd.conf file
    5. Gracefully restart Apache – apacectl restart or /etc/init.d/apache restart

    Note that with IIS you don’t need to restart :)

    相关文章:

    1. xampp
    2. 读:APACHE经典实例
    3. silverlight官网的全部视频
    4. {转}VPS上安装LAMP步骤
    5. wpf(2)

    评论|Comments

    2 Responses to “Silverlight Mime types in IIS6 and Apache”

    1. asd
      四月 10th, 2010 @ 13:00

      扩展名: .xap
      MIME类型:xapapplication/x-silverlight

      扩展名: .xaml
        MIME类型:application/xaml+xml

    2. Tabu D’apache – Colours (Extended Version)
      四月 25th, 2010 @ 15:49

      [...] Silverlight Mime types in IIS6 and Apache | CQ-CSER [...]

    留言|Leave a Reply





  • Archives

  • SUNSHINE

  • About

    本博客采用创作共用版权协议,要求署名、非商业用途和保持一致. 转载本博客内容也遵循“署名-非商业用途-保持一致”的创作共用协议.

    订阅

    Search

    Admin