这两天临时用单位服务器主机 先用之前别人已经按的weblogic登录7001可以。
可是因为想用tomcat就安了个解压版的,以前也按过,配置一下就行啊,怎么这次就不行了,到8080口上直接说:Directory Listing Denied
This Virtual Directory does not allow contents to be listed.不知为何,到底是哪里出问题了。
还要 我问问就是server.xml中有关port=的好几个口 什么8443,8080,8005 怎么区别哪个口才是端口地址啊,以后好直接改,这个跟我现在这台服务器上的oracle有关系么???
谢谢各位大虾们 

解决方案 »

  1.   

    tomcat 5.0 comf/server.xml
     <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
      

  2.   

    8443 主要用于https访问
    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>
      

  3.   

      <Connector port="8080" protocol="HTTP/1.1" 
                   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" />
        -->
      

  4.   

    catalina中只有这一部分 没有你说到的缺省包的导入
     <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楼继续解惑