添加处理程序或MIME以允许下载脚本 [英] Add a handler or MIME to allow downloading script

查看:128
本文介绍了添加处理程序或MIME以允许下载脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我为Internet Explorer创建了一个脚本,可以使用GM4IE(Internet Explorer的Grasemonkey)安装该脚本,扩展名为.gm4ie.

当我尝试在服务器上提供此文件的下载链接时,它会出现以下错误: http://i.imgur.com/K7Rs4.jpg [ ^ ]

由于扩展程序配置的原因,无法提供您请求的页面.如果页面是脚本,请添加处理程序.如果应下载文件,请添加一个MIME映射.

如何添加此地图或mime地图,在哪里添加?它是托管提供程序的服务器.

Hi,

I created a script for Internet Explorer which can be installed using GM4IE (Greasemonkey for Internet Explorer) and it has the extension .gm4ie.

When I try to give the download link to this file on my server, it gives this error: http://i.imgur.com/K7Rs4.jpg[^]

page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.

How do I add this this hanlder or a mime map and where do I add this? It''s the hosting provider''s server.

推荐答案

我假定您需要为此扩展名添加HTTP处理程序.我敢打赌,您的Web主机对此会收取额外费用.
I assume you need to add a HTTP handler for this extension. I bet your web host charges extra for this.


您需要在服务器中添加处理程序.为此,您应该联系提供商的服务器.如何添加呢?在IIS中,要知道如何添加它取决于版本.
You need to add the handler in the Server. For this you should contact your provider''s server. How to add it? In the IIS, It depends of the version to know how to add it.


这篇关于添加处理程序或MIME以允许下载脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆