`

The requested resource (/) is not ava

阅读更多
HTTP Status 404 - /stove

--------------------------------------------------------------------------------


type Status report

message /stove

description The requested resource (/stove) is not available.





Apache Tomcat/5.5.26
在stove中小实例中没有太多东西,只是一个test而已,一看就是找不到路径的问题,但是路径确确实实是存在的,这个我呢提以前碰到过,让这么幼稚的问题困住很是尴尬。后来才发现是tomcat在作怪,tomcat从5.5版本之后,在默认配置上面很一些不同,可能记录安全性的考虑,从5.5之后关闭了默认的目录浏览功能,其他默认设置有什么变化现在还发现。



对应的配置选项在apache-tomcat-5.5\conf\web.xml配置如下:
<servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
 
解决方法:

将其中的
<init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param>
设置由false改为true,即可开启目录浏览功能
而在Tomcat5.0.25中
对应的配置选项在apache-tomcat-5.0.25\conf\web.xml配置如下:
<servlet> <servlet-name>default</servlet-name> <servlet-class> org.apache.catalina.servlets.DefaultServlet </servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>

这样就可以开启目录浏览功能,当然题目所述问题就可以解决掉,但是会有何安全性问题还不清楚。
分享到:
评论

相关推荐

    HTTP_Status_404(The_requested_resource_is_not_available)的几种解决方案_补充

    ...在本文中,我们将讨论七种常见的解决方案,以帮助开发者快速解决该问题。 1. 未部署 Web 应用 ...未部署的 Web 应用程序将导致请求的资源不可用。...* 查看 URL 的 IP 地址和端口号是否书写正确。...* 查看上下文路径是否...

    IIS访问ASP页面时报错The requested resource is in use.的解决办法

    ### IIS访问ASP页面时报错“The requested resource is in use”的解决办法 在处理IIS(Internet Information Services)服务器上的ASP(Active Server Pages)页面时,可能会遇到一个常见的错误:“The requested ...

    IIS HTTP 错误 404.17 – Not Found 解决方法

    错误提示如下图: 出现这种情况的原因通常是因为先安装了Framework,后安装的IIS; 运行cmd,输入: 代码如下:C:\Windows\Microsoft.NET\Framework\V4.0.30319\aspnet...Win7中IIS出现“HTTP 错误 404.17 – Not Foun

    Amazon C# 卖家/S-API接口Demo,官方Demo一堆错误,千万不要被误导

    Amazon 卖家接口Demo,官方Demo一堆错误,千万不要被误导。 解决: 1、Access to requested resource is denied 2、The security token included in the request is invalid 有疑问可提问

    Nginx解决转发地址时跨域的问题

    No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'null' is therefore not allowed access. 这就是跨域问题。解决方案有不少,比较好的是服务器端配置CORS,但要求服务器端...

    dashboard .zip

    k8s的16版本安装的时候,dashboard 出现k8s dashboard the server could not find the requested resource的问题。重新换一个2.0版本的dashboard即可。

    awstats统计工具

    Awstats是一个免费非常简洁而且强大有个性的统计工具。它可以统计您站点的如下信息: 一:访问量,访问次数,页面浏览量,点击数,数据流量等 二:精确到每月、每日、每小时的数据 三:访问者国家 四:访问者IP 五:...

    静态文件访问不到报No Access-Control-Allow-Origin处理办法

    当一个网页尝试从不同的源(协议、域名或端口)请求资源时,如果目标服务器没有允许这个源的权限,浏览器会阻止该请求,从而出现"No 'Access-Control-Allow-Origin' header is present on the requested resource"的...

    Books-Mangement-System-php-master - 副本_图书管理系统_

    《图书管理系统》是一款基于PHP语言开发的在线图书馆管理软件,其核心功能是通过MySQL数据库来存储和管理图书及用户信息,实现图书的借阅、归还、查询等操作。下面将详细阐述该系统的主要组成部分及其相关知识点。...

    2013年12月7日最新SSH整合Jar包

    SSH整合是指Spring、Struts和Hibernate这三大开源框架的集成应用。这三大框架分别是Spring作为应用的IoC(Inversion of Control,控制反转)和AOP(Aspect-Oriented Programming,面向切面编程)容器,Struts作为MVC...

    Mail 错误com/sun/mail/util/LineInputStream。javaee.jar 开发包

    ava.lang.NoClassDefFoundError: com/sun/mail/util/LineInputStream 使用方法: 将javaee.jar 复制到C:\Program Files\Genuitec\Common\plugins\...

    小程序报错 WAService.js:3 Uncaught Error: module "src/utils/utils.js" is not defined

    编译程序时候老是报module "src/utils/utils.js" is not defined的错,狂问度娘也没结果 后来静下来想才尝试弄正确: 我本来的页面地址是:"src/main/welcome/welcome" 在这个页面的基础上要加载utils.js,所以按照...

    Docker push报错 :denied: requested access to the resource is denied

    在排除没有登录和网络的原因:我还是报的如下错误 原因镜像的名字没有按照...The push refers to repository [docker.io/langxuhao/my_redis] cd1b418d5a74: Pushed ddf2402ca3ea: Pushed 00352274272b: Pushed a0e3c

    delphi 7 gif控件

    // If the sub frame is transparent the background is not automatically // // restored, you must do so yourself if you want that. // // If you are using a TImage to display the gif you can use // // ...

    error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large

    git首次提交代码到远程仓库提示413错误,错误信息如下 git push --set-upstream origin master Enumerating objects: 153, done. ... HTTP 413 curl 22 The requested URL returned error: 413 Req

    Python从ZabbixAPI获取信息及实现Zabbix-API 监控的方法

    在IT监控领域,Zabbix是一个广泛使用的开源网络监控解决方案,它可以监控各种IT基础设施的状态,包括服务器、网络设备、应用程序等。Python与Zabbix API的结合则提供了强大的自动化工具,允许用户自定义监控策略和...

    fckeditor编辑器

    web开发者必备的开源文本编辑器!web开发者必备的开源文本编辑器!web开发者必备的开源文本编辑器!web开发者必备的开源文本编辑器!web开发者必备的开源文本编辑器!web开发者必备的开源文本编辑器!...

    apache启动报错:the requested operation has failed解决办法

    ### Apache启动报错:“the requested operation has failed”的解决办法 #### 背景与问题描述 在使用Apache Web服务器的过程中,可能会遇到一个常见的错误提示:“the requested operation has failed”。这个错误...

    jiaminghi/data-view dataV for vite2 vue3 windows补丁 for pnpm

    官网直接安装的不支持vite2+vue3的 主要修复: 1.build或者dev项目时不报错,兼容vite2,vue3; 2.加入deep监听watch,直接在父组件中修改图表中的config参数即可完成图表中的数据变更。 yarn npm cnpm pnpm可通用...

Global site tag (gtag.js) - Google Analytics