在普通的 apache Web 服务器上托管 silverlight 应用程序?

发布于 2024-12-11 02:59:03 字数 85 浏览 2 评论 0原文

是否可以在普通的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

饭团 2024-12-18 02:59:03

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 of application/x-silverlight-app. If your silverlight app is dynamically grabbing files from your server, you might need e.g. .xaml files to be served as application/xaml+xml.

To set MIME types with apache, you can either use the AddType directive in a .htaccess file, or edit apache's mime.types file directly.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文