使用 Apache 服务器运行 Silverlight(在 linux 下)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/729294/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Run Silverlight with Apache Server (Under linux)
提问by Jesus Jimenez
I need to deploy a Silverlight 2.0 application to an Apache Server, but it's under Linux.
我需要将 Silverlight 2.0 应用程序部署到 Apache 服务器,但它在 Linux 下。
Is this possible? I mean, Do I need .Net 3.5 installed in the server and a Web Site that can execute Asp.Net?
这可能吗?我的意思是,我是否需要在服务器中安装 .Net 3.5 和一个可以执行 Asp.Net 的网站?
Thanks for you help...
谢谢你的帮助...
回答by KevB
If the apache server is just serving up the silverlight application without any ASPX pages then you should be fine. Silverlight is a client side technology so it shouldn't require .NET on the server (unless of course you are hosting the silverlight application on an ASPX page).
如果 apache 服务器只是在没有任何 ASPX 页面的情况下提供 Silverlight 应用程序,那么您应该没问题。Silverlight 是一种客户端技术,因此它不需要服务器上的 .NET(当然,除非您在 ASPX 页面上托管 Silverlight 应用程序)。
If you want to view the silverlight content from a client machine running linux then you will need to look into installing Moonlight as Sam pointed out.
如果您想从运行 linux 的客户端机器上查看 Silverlight 内容,那么您需要按照 Sam 指出的那样安装 Moonlight。
EDIT: Tim Sneath has a blog postthat explains what needs to be configured on the web server to be able to host silverlight content. In short you need configure the following MIME types:
编辑:Tim Sneath 有一篇博客文章,解释了需要在 Web 服务器上配置什么才能托管 Silverlight 内容。简而言之,您需要配置以下 MIME 类型:
.xaml - application/xaml+xml
.xap - application/x-silverlight-app
.xaml - 应用程序/xaml+xml
.xap - 应用程序/x-silverlight-app
回答by skolima
I had to define more MIME types than KevB suggests:
我必须定义比 KevB 建议的更多的 MIME 类型:
application/manifest .manifest
application/xaml+xml .xaml
application/x-ms-application .application
application/x-ms-xbap .xbap
application/octet-stream .deploy
application/vnd.ms-xpsdocument .xps
回答by Srikar Doddi
You should take advantage of silverlight streaming. It is free upto 10 mins of video @ 1.4 Mbps.
您应该利用Silverlight 流媒体。以 1.4 Mbps 的速度免费播放长达 10 分钟的视频。
Instructions here:
说明在这里:
http://msdn.microsoft.com/en-us/library/bb851621.aspx

