在普通的 apache Web 服务器上托管 silverlight 应用程序?
是否可以在普通的 apache Web 服务器上托管 silverlight 应用程序?
我的意思是没有asp.net。 (就像闪光灯一样)
is it possbiel to host a silverlight application on a normal apache web server?
i mean without asp.net. (just like flash)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Silverlight 可以很好地从 apache 托管。您唯一需要担心的是您是否设置了正确的 MIME 类型。您必须至少设置
.xap
文件才能提供application/x-silverlight-app
内容类型。如果您的 silverlight 应用程序动态地从服务器获取文件,您可能需要将.xaml
文件作为application/xaml+xml
提供服务。要使用 apache 设置 MIME 类型,您可以使用
.htaccess
文件中的AddType
指令,或直接编辑 apache 的mime.types
文件。Silverlight can be hosted from apache just fine. The only thing you need to worry about is that you have the proper MIME types set up. You must have at least
.xap
files set up to serve a content type ofapplication/x-silverlight-app
. If your silverlight app is dynamically grabbing files from your server, you might need e.g..xaml
files to be served asapplication/xaml+xml
.To set MIME types with apache, you can either use the
AddType
directive in a.htaccess
file, or edit apache'smime.types
file directly.