我可以使用 Apache 提供 ClickOnce 应用程序吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/93361/
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
Can I serve a ClickOnce application with Apache?
提问by Andrew
We're testing our ClickOnce deployed application internally on IIS (Internet Information Services), but we're wondering if we can deploy it to the wider internet using Apache on Linux so we can make use of our existing external website host.
我们正在 IIS(Internet 信息服务)内部测试我们的 ClickOnce 部署应用程序,但我们想知道是否可以使用 Linux 上的 Apache 将其部署到更广泛的 Internet,以便我们可以利用我们现有的外部网站主机。
If so, is there anything else I need to consider other than as specifying the correct mime types such as .applicationand .deploy?
如果是这样,除了指定正确的 mime 类型(例如.application和 )之外,还有什么我需要考虑的.deploy吗?
采纳答案by Jose Bueno
I found a number of people asking the same question starting around 2005, but here is the first google result - also discusses silverlight.
我发现很多人从 2005 年左右开始问同样的问题,但这是第一个谷歌结果 - 也讨论了 Silverlight。
http://software.clempaul.me.uk/articles/clickonce/
http://software.clempaul.me.uk/articles/clickonce/
As far as I can tell, however, the only thing you would need to worry about would be setting up the mime types and providing access to the files.
但是,据我所知,您唯一需要担心的是设置 mime 类型并提供对文件的访问。
回答by Don Kirkby
The Paul Clementarticle is the best description I've found. I also came across a topic in the Apache documentationthat suggests putting the configuration in the httpd.conf file instead of .htaccess files. Here are the lines I added to my httpd.conf file:
在保罗克莱门特文章是我已经找到了最好的说明。我还在Apache 文档中遇到了一个主题,该主题建议将配置放在 httpd.conf 文件而不是 .htaccess 文件中。以下是我添加到 httpd.conf 文件中的行:
AddType application/x-ms-application .application
AddType application/manifest .manifest
AddType application/octet-stream .deploy

