tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From MB <>
Subject basic 2 virtual hosts configuration
Date Tue, 15 Jun 2010 23:23:52 GMT

to deploy 2 virtual hosts in Tomcat 5.5.29 (no Apache) what more than
the server.xml file below and a context.xml per each host in Catalina do
you need to set up?

Where do I set path, like for "/"? Alright in the context file (see below)?

<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
    <!-- Used by Manager webapp -->
    <Resource name="UserDatabase" auth="Container"
       description="User database that can be updated and saved"
          pathname="conf/tomcat-users.xml" />

  <Service name="Catalina">
    <Connector port="80" />
 <Engine name="Catalina" defaultHost="kron">
      <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase" />
      <Host name="medpsy" appBase="/home/webbplatser/" />
      <Host name="kron" appBase="/home/webbplatser/" />

Fragment context settings in /Catalina/kron/ROOT.xml (similar for the
other site: 

<?xml version="1.0" encoding="UTF-8"?>
  <Listener className="org.apache.catalina.startup.TldConfig"/>

This set up doesn't serve a pages physically put in any of the ROOT
folders of the sites. I get blank pages.

Anyone that can point to a guide that focuses only on the steps
necessary to configure Tomcat 5.5.x for 2 or more virtual hosts?
Preferably without involvement with Apache.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message