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
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+xml7. 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
相关文章:
评论|Comments
2 Responses to “Silverlight Mime types in IIS6 and Apache”
留言|Leave a Reply
![如果您自认为是一位忠实的Silverlight-Fans,那么请将此标志放到您的博客中成为一名真正的[银光使者]](http://images.cnblogs.com/cnblogs_com/alamiye010/Silverlighter1.jpg)
四月 10th, 2010 @ 13:00
扩展名: .xap
MIME类型:xapapplication/x-silverlight
扩展名: .xaml
MIME类型:application/xaml+xml
四月 25th, 2010 @ 15:49
[...] Silverlight Mime types in IIS6 and Apache | CQ-CSER [...]