tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.Arkhypov" <Mykhaylo.Arkhy...@gmx.net>
Subject How to start my application without localhost, only with virtiual host ?
Date Wed, 27 Oct 2010 14:44:18 GMT

Hi Tomcat - Users,

I use Tomcat 6.0.29 on a Suse 11.1 Linux Server and I would like to start  
my application without localhost, only with virtiual host.

On Windows it works already.
Here is the server.xml:

  <!--
<Host name="localhost"  appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
</Host>
-->

       <Host name="mmmtest.ch"
         unpackWARs="true" autoDeploy="true"
         xmlValidation="false" xmlNamespaceAware="true">
         <Alias>mmmtest.ch</Alias>
         <Context path=""
              docBase="c:/temp_mmm/apache-tomcat-6.0.29/webapps/examples"
              reloadable="true" allowLinking="true" >
         </Context>
      </Host>

Now I can reach the network with the URL: http://mmmtest.ch/.
The tomcatmanager is reachable on: http://mmmtest.ch:8080/manager/html.


The server.xml:

  <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
     <Connector port="8080" maxHttpHeaderSize="8192"
                maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
                enableLookups="false" redirectPort="8443" acceptCount="100"
                connectionTimeout="20000" disableUploadTimeout="true" />
     <Connector port="8010"
                enableLookups="false" redirectPort="8443"  
protocol="AJP/1.3" />

     <Engine name="Catalina" defaultHost="localhost">

       <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
              resourceName="UserDatabase"/>

       <!--
       <Host name="localhost" appBase="webapps"

        unpackWARs="true" autoDeploy="true"
        xmlValidation="false" xmlNamespaceAware="false">

       </Host>
-->

      <Host name="pcd-testcommunity.de"
         unpackWARs="true" autoDeploy="true"
         xmlValidation="false" xmlNamespaceAware="true">
                 <Alias>pcd-testcommunity.de</Alias>
                          <Context path=""
                                  docBase="/var/lib/tomcat55/webapps/CompetenceNetwork"
                                  reloadable="true" allowLinking="true" >
                          </Context>
      </Host>

     </Engine>

   </Service>

</Server>

The network is reachable on pcd-testcommunity.de. If I try to reach the  
tomcatmanager with http://pcd-testcommunity.de:8081/manager/html, I get an  
ERROR 404.
How can I work with tomcatmanager with these configurations?

Greetings

Michael Arkhypov, Softwareentwickler

Lyncker & Theis GmbH
Wilhelmstr. 16
65185 Wiesbaden
Germany

Fon +49 611/89038960
Fax +49 611/9406125

Handelsregister: HRB 23156 Amtsgericht Wiesbaden
Steuernummer: 04323897052
USt-IdNr.: DE255806399

Geschäftsführer:
Filip Lyncker,
Armin Theis

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message