tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matias Bahlenberg" <matias.bahlenb...@itec.se>
Subject Re: HTTP Status 500
Date Thu, 27 Sep 2001 07:05:53 GMT
Hi Lee,

I recognize this. I solved the problem with a Host inside the Engine element in the server.xml.
See below:

<Server port="8005" shutdown="SHUTDOWN" debug="0">

    <!-- Some information of the stand-alone service, tomcat web-server -->
    <!-- I you do not use this service, I suggest you comment it all -->

    <!-- Define an Apache-Connector Service -->
    <Service name="Tomcat-Apache">
        <Connector className="org.apache.ajp.tomcat4.Ajp13Connector"
                  port="8009" minProcessors="5" maxProcessors="75"
                  enableLookups="true" 
                  acceptCount="10" debug="0" />

        <!-- Replace "localhost" with what your Apache "ServerName" is set to -->
        <Engine className="org.apache.catalina.connector.warp.WarpEngine"
         name="Apache" defaultHost="www.company.com" debug="0" appBase="webapps">

          <!-- Global logger unless overridden at lower levels -->
          <Logger className="org.apache.catalina.logger.FileLogger"
                  prefix="apache_log." suffix=".txt"
                  timestamp="true"/>

            <Valve className="org.apache.catalina.valves.AccessLogValve"
                     directory="logs"  prefix="apache_access_log." suffix=".txt"
                     pattern="common"/>

            <!-- Because this Realm is here, an instance will be shared globally -->
            <Realm className="org.apache.catalina.realm.MemoryRealm" />

            <!-- Be sure that the name is the same as ServerName in httpd.conf -->
            <Host name="www.company.com" appBase="webapps">
                <Context path=""
                         docBase="ROOT"
                         crossContext="false"
                         reloadable="true" />
            </Host>
        </Engine>
    </Service>
</Server>



----- Original Message ----- 
From: <Lee.Lovell@cnm.co.uk>
To: <tomcat-user@jakarta.apache.org>
Sent: Wednesday, September 26, 2001 4:46 PM
Subject: HTTP Status 500


> 
> Does anyone know why i get the message
> 
> HTTP Status 500 - No Host matches server name www.xxxxxxx.co.uk
> 
> When i use ajp13 to connect to tomcat 4 from apache 1.3.20
> 
> I am using the same method i would have used when i was using tomcat 3.x
> (I.e nothing has changed on the apache side
> 
> Only the Connetor stuff in server.xml has changed !
> 
> 
> Any obvious ideas anyone ?
> 
> 
> Cheers in advance
> 
> 
> Lee
> 
> 
> (Embedded image moved to file: pic00041.pcx)
> 
> 


Mime
View raw message