tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anand HS" <anan...@gmail.com>
Subject Re: What exactly happens when I configure a different host
Date Mon, 01 Dec 2008 22:13:15 GMT
Thats exactly what I have.

Here is the server.xml configuration  -

 <Service name="Tomcat-Standalone-Admin">

    <Connector     port="80" protocol="HTTP/1.1"
                connectionTimeout="20000"
                redirectPort="443"
                address="10.168.51.12"/>

    <Connector     port="443" address="10.168.51.12" protocol="HTTP/1.1"
SSLEnabled="true"
                maxThreads="150" scheme="https" secure="true"
                clientAuth="false" sslProtocol="TLS"
                keystoreFile="C:\Documents and
Settings\Administrator\admin.keystore"
                keystorePass="changeit" />

    <Engine name="Tomcat-Standalone-Admin" defaultHost="10.168.51.12">

    <Realm className="org.apache.catalina.realm.MemoryRealm" />
      <!-- Define the default virtual host
           Note: XML Schema validation will not work with Xerces 2.2.
       -->
      <Host name="10.168.51.12"  appBase="webapps"
            unpackWARs="true" autoDeploy="false"
            xmlValidation="false" xmlNamespaceAware="false">
        <Context path="" docBase="admin-web">

            <Valve     className="org.apache.catalina.valves.AccessLogValve"


directory="\\10.168.48.254\web_app_logs\QA1\Logs\SDQA1-WEB\TOMCAT\admin\accesslog"

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


directory="\\10.168.48.254\web_app_logs\QA1\Logs\SDQA1-WEB\TOMCAT\all\accesslog"

                    prefix="localhost_access_log."
                    suffix=".txt"
                    pattern="common" />
        </Context>

      </Host>
    </Engine>
  </Service>


Cheers-
Anand
On Mon, Dec 1, 2008 at 1:42 PM, Caldarale, Charles R <
Chuck.Caldarale@unisys.com> wrote:

> > From: Anand HS [mailto:anandhs@gmail.com]
> > Subject: What exactly happens when I configure a different host
> >
> > I noticed a strange behavior when I tried to configure a
> > virtual host by changing the Host Name in server.xml from
> > the default "localhost" to "mydomain.com".
>
> If that's all you did, then you have an invalid configuration, and all bets
> are off.  There must be one <Host> with a name attribute that matches the
> defaultHost attribute of the enclosing <Engine> element.
>
> Note that if you have only one <Host>, its name is unimportant other than
> it must be the same as the defaultHost setting.
>
>  - Chuck
>
>
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
> MATERIAL and is thus for use only by the intended recipient. If you received
> this in error, please contact the sender and delete the e-mail and its
> attachments from all computers.
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message