403禁止错误而获得根文件夹下的JavaScript [英] 403 forbidden error while getting javascripts under root folder

查看:265
本文介绍了403禁止错误而获得根文件夹下的JavaScript的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有JavaScript的根文件夹,它的所有workig罚款至今文件夹下。它突然开始给我下面的错误的所有脚本文件夹下的JavaScript。

I have javascripts folder under root folder , its all workig fine till now. Suddenly it started giving me the following error for all the javascripts under scripts folder.

我今天所做的唯一的变化是,部署的网站根目录下的一些文件这是ASP文件。到脚本文件夹在所有我没有部署任何文件。

I the only change i made today is , deployed some files under website root directory which are asp files. I didn't deploy any files to scripts folder at all.

我在Firebug净面板看到的和我得到了同样的错误。

I saw in firebug net panel and i got the same error there.

页面无法displayedYou试图从一个目录不允许执行程序执行CGI,ISAPI或其他可执行程序。
请尝试以下操作:

The page cannot be displayedYou have attempted to execute a CGI, ISAPI, or other executable program from a directory that does not allow programs to be executed. Please try the following:

推荐答案

您的Web服务器设置认为.js文件是服务器端JavaScript和你在执行权限的目录。如果你有.asp的有你所需要的执行权限。转到您的IIS设置,并找到处理程序的列表(而不是MIME类型),并确保.js文件未列出。

You web server is set up to think that .js files are server-side JavaScript and you are in a directory with Execute permission. You need the Execute permission if you have .asp there. Go to your IIS settings and find the list of handlers (not mime-types) and make sure that .js isn't listed.

或者,你可以只是.js文件移动到文件夹,而不在IIS执行权限。

Or, you could just move the .js files to a folder without execute permission in IIS.

这篇关于403禁止错误而获得根文件夹下的JavaScript的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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