这两天临时用单位服务器主机 先用之前别人已经按的weblogic登录7001可以。
可是因为想用tomcat就安了个解压版的,以前也按过,配置一下就行啊,怎么这次就不行了,到8080口上直接说:Directory Listing Denied
This Virtual Directory does not allow contents to be listed.不知为何,到底是哪里出问题了。
还要 我问问就是server.xml中有关port=的好几个口 什么8443,8080,8005 怎么区别哪个口才是端口地址啊,以后好直接改,这个跟我现在这台服务器上的oracle有关系么???
谢谢各位大虾们
可是因为想用tomcat就安了个解压版的,以前也按过,配置一下就行啊,怎么这次就不行了,到8080口上直接说:Directory Listing Denied
This Virtual Directory does not allow contents to be listed.不知为何,到底是哪里出问题了。
还要 我问问就是server.xml中有关port=的好几个口 什么8443,8080,8005 怎么区别哪个口才是端口地址啊,以后好直接改,这个跟我现在这台服务器上的oracle有关系么???
谢谢各位大虾们
解决方案 »
- weblogic 添加新JSP页面的问题
- jsp导入class文件出错
- hudson.war 在tomcat下发布失败。求解决
- 请各位大侠帮忙改下!
- 求助update
- tomcat安装失败
- 如果sql中的cdgzye字段返回的是null,那rs.getDouble("cdgzye") 得到是不是0.0
- Nginx + memcache + Spring + Hibernate + 多Tomcat集群后报懒加载错误的问题
- 如何使程序适应不同的数据库 欢迎大家讨论,指教!
- 怎么才能开发Jsp啊?
- 这个是怎么回事啊?大家帮忙 看下 Communications link failure due to underlying exception:
- 请问jsp怎么判断访问来自PC还是手机等移动设备?
<Connector port="8080" maxHttpHeaderSize="8192"
maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
tomcat 6 comf/server.xml <Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
就修改这里的8080端口就可以了,默认的是8088,我这里改为了8080
8080 主要用于http访问
8005 主要用于shutdown tomcat
8009 主要用于ajp连接
你可能是需要在%project-name%/web-inf/web.xml 添加<welcome-file-list></welcome-file-list>指定页面
或者修改conf/web.xm默认servlet(org.apache.catalina.servlets.DefaultServlet)的参数值没有则新增
<init-param>
<param-name>listings</param-name>
<param-value>true</param-value>
</init-param>
connectionTimeout="20000"
redirectPort="8443" />
<!-- A "Connector" using the shared thread pool-->
<!--
<Connector executor="tomcatThreadPool"
port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
-->
<!-- Define a SSL HTTP/1.1 Connector on port 8443
This connector uses the JSSE configuration, when using APR, the
connector should be using the OpenSSL style configuration
described in the APR documentation -->
<!--
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" />
-->
<Service name="Catalina">
<!--The connectors can use a shared executor, you can define one or more named thread pools-->
<!--
<Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
maxThreads="150" minSpareThreads="4"/>
-->
<!-- A "Connector" represents an endpoint by which requests are received
and responses are returned. Documentation at :
Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
Java AJP Connector: /docs/config/ajp.html
APR (HTTP/AJP) Connector: /docs/apr.html
Define a non-SSL HTTP/1.1 Connector on port 8080
-->
而且我是在按tomcat的过程中希望登陆8080验证是否安装成功才出现我说的那种情况的 所以里面并没有项目 3楼继续解惑