Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

strange ssl tomcat response

Tsirkin Evgeny

2006-12-13

Replies:

Hi list!
Hope this will not be posted twice.
I have setted up a tomcat to listen to ssl
on 8443 port.
When i use url https://myhost:8443/ everything works fine.
However when pointing my browser to
http://myhost:8443/
I am getting strange response .
It looks something like this in text representation:
^U^C^A^@(protected)
What is this ?
The tomcat does NOT listen on a regular http port (if this is relevent).It
is supposed
to get http from apache (ajp).
Here is relevant part of the server.xml:
<Service name="Catalina">
  <Connector port="8443" maxHttpHeaderSize="8192"
         maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
         enableLookups="false" disableUploadTimeout="true"
         acceptCount="100" scheme="https" secure="true"
         clientAuth="false" sslProtocol="SSL"
keystorePass="passphrase" keystoreFile="${catalina.home}/ssl/.keystore"/>
  <Connector port="8009"
         enableLookups="false" protocol="AJP/1.3" address="127.0.0.1
"/>
  <!-- Define the top level container in our container hierarchy -->
    <Engine name="Catalina" defaultHost="localhost">
<Listener className="org.apache.jk.config.ApacheConfig"
modJk="/path/to/mod_jk.so" />
   <!-- Define the default virtual host
      Note: XML Schema validation will not work with Xerces 2.2.
    -->
   <Host name="localhost" appBase="webapps"
    unpackWARs="true" autoDeploy="true"
    xmlValidation="false" xmlNamespaceAware="false">
      <Valve className="org.apache.catalina.valves.AccessLogValve"
       prefix="localhost_access_log." suffix=".txt"
  pattern="common"/>
      <Context path="/manager" docBase="${catalina.home
}/server/webapps/manager"
          privileged="true" antiResourceLocking="false"
antiJARLocking="false" >
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
            resourceName="UserDatabase"/>

  <!-- Link to the user database we will get roles from -->
   <ResourceLink name="users" global="UserDatabase"
              type="org.apache.catalina.UserDatabase"/>
        <Valve className="org.apache.catalina.valves.RemoteAddrValve"
        allow="myip"/>
   <Valve className="org.apache.catalina.valves.AccessLogValve"
        prefix="manager_access_log." suffix=".txt"
        pattern="common"/>
      </Context>
   </Host>

  </Engine>

</Service>
Any help please?
Evgeny
©2008 junlu.com - Jax Systems, LLC, U.S.A.